瀏覽代碼

Lager STARTS

pull/264/head
John R. Daily 10 年之前
父節點
當前提交
347c9c53b4
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      src/lager_app.erl

+ 6
- 0
src/lager_app.erl 查看文件

@ -119,6 +119,12 @@ wrap_proplist_value(Value) ->
configure_sink(Sink, SinkDef) ->
lager_config:new_sink(Sink),
ChildId = list_to_atom(atom_to_list(Sink) ++ "_event"),
supervisor:start_child(lager_sup,
{ChildId,
{gen_event, start_link,
[{local, Sink}]},
permanent, 5000, worker, [dynamic]}),
determine_async_behavior(Sink,
wrap_proplist_value(
proplists:get_value(async_threshold, SinkDef)),

Loading…
取消
儲存