diff --git a/chronicles/log_output.nim b/chronicles/log_output.nim index af87e72..2a8f688 100644 --- a/chronicles/log_output.nim +++ b/chronicles/log_output.nim @@ -16,17 +16,17 @@ type AnyOutput = FileOutput|StdOutOutput|StdErrOutput| SysLogOutput|BufferedOutput - TextLineRecord[Output; - timestamps: static[TimestampsScheme], - colors: static[ColorScheme]] = object - output: Output - - TextBlockRecord[Output; + TextLineRecord*[Output; timestamps: static[TimestampsScheme], colors: static[ColorScheme]] = object output: Output - JsonRecord[Output; timestamps: static[TimestampsScheme]] = object + TextBlockRecord*[Output; + timestamps: static[TimestampsScheme], + colors: static[ColorScheme]] = object + output: Output + + JsonRecord*[Output; timestamps: static[TimestampsScheme]] = object output: Output # XXX: `bindSym` is currently broken and doesn't return proper type symbols diff --git a/chronicles/options.nim b/chronicles/options.nim index 4cc54cc..6f9d792 100644 --- a/chronicles/options.nim +++ b/chronicles/options.nim @@ -16,7 +16,7 @@ const chronicles_required_topics {.strdefine.} = "" chronicles_disabled_topics {.strdefine.} = "" chronicles_runtime_filtering {.strdefine.} = "off" - chronicles_log_level {.strdefine.} = when defined(debug): "ALL" + chronicles_log_level {.strdefine.} = when defined(debug): "DEBUG" else: "INFO" chronicles_timestamps {.strdefine.} = "RfcTime"