Parcourir la source

Lager STARTS

pull/264/head
John R. Daily il y a 10 ans
Parent
révision
347c9c53b4
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. +6
    -0
      src/lager_app.erl

+ 6
- 0
src/lager_app.erl Voir le fichier

@ -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)),

Chargement…
Annuler
Enregistrer