Types
LogMessage = object case kind*: MessageKind of mkWrite: sContext*, sText*: string iSeverity*: int trace*: TraceInfo of mkUpdate: nil of mkAddTarget, mkRemoveTarget: sName*: string target*: LogTarget of mkStop: nil
Procs
proc logThread() {...}{.thread, raises: [ValueError, Exception, IOError, KeyError], tags: [RootEffect, WriteIOEffect, TimeEffect].}
proc start_logging() {...}{.raises: [ResourceExhaustedError, ValueError, Exception, IOError, KeyError], tags: [RootEffect, WriteIOEffect, TimeEffect].}
proc stop_logging() {...}{.noconv, raises: [Exception], tags: [RootEffect].}
proc add_target(name: string; newTarget: LogTarget) {...}{.raises: [Exception], tags: [RootEffect].}
Templates
template debug(sNewMessage: string; sNewContext = ""): untyped
template info(sNewMessage: string; sNewContext = ""): untyped
template warning(sNewMessage: string; sNewContext = ""): untyped
template error(sNewMessage: string; sNewContext = ""): untyped
template critical(sNewMessage: string; sNewContext = ""): untyped