Lazy logging without header
This commit is contained in:
parent
82b8047349
commit
bc1464a33f
|
@ -14,5 +14,11 @@
|
||||||
end).
|
end).
|
||||||
-else.
|
-else.
|
||||||
%% without header
|
%% without header
|
||||||
-define(LOG(Level, Format, Args), logger:log(Level, Format, Args)).
|
-define(LOG(Level, Format, Args),
|
||||||
|
begin
|
||||||
|
(logger:log(Level,#{},#{report_cb =>
|
||||||
|
fun(_) ->
|
||||||
|
{(Format), (Args)}
|
||||||
|
end}))
|
||||||
|
end).
|
||||||
-endif.
|
-endif.
|
Loading…
Reference in New Issue