You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove +verb/ submodule, in favour of using the dk.logger.Logger implementation.
Default logger should be created at startup.
Additional function dk.logger.level to simplify level control.
Alias method Logger:setFile, more explicit than open.
Implement static class dk.logger.test to be called by assert/reject in order to redirect assertions to different channels.
Remove static method callerInfo from Logger, and move it to separate dk.logger.chan instead (taking stack depth argument), which returns a struct with channel ID and caller string.
Update Logger:write to take a channel as first input, and exclude empty caller from log line.
Implement function dk.log, taking a channel as first input (or creating a default one if formatted message is passed directly), with a persistent instance of the default logger.
+verb/
submodule, in favour of using thedk.logger.Logger
implementation.dk.logger.level
to simplify level control.Logger:setFile
, more explicit thanopen
.dk.logger.test
to be called byassert/reject
in order to redirect assertions to different channels.callerInfo
fromLogger
, and move it to separatedk.logger.chan
instead (taking stack depth argument), which returns a struct with channel ID and caller string.Logger:write
to take a channel as first input, and exclude empty caller from log line.dk.log
, taking a channel as first input (or creating a default one if formatted message is passed directly), with a persistent instance of the default logger.dk.warn/info
to calldk.log
..if
methods fromLogger
, in favour of directed assertions.dk.wassert/wreject
with calls toassert
with specified channels.The text was updated successfully, but these errors were encountered: