Skip to content

Commit

Permalink
version 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednawras committed Feb 2, 2010
1 parent d385ccc commit 97137ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/file_appender.erl
Expand Up @@ -83,13 +83,16 @@ handle_event({log,LLog}, State) ->
Res = check_rotation(State),
{ok, Res}.


handle_call({change_format, Format}, State) ->
?LOG2("Old State in file_appender is ~p~n",[State]),
{ok, Tokens} = log_formatter:parse(Format),
?LOG2("Adding format of ~p~n",[Tokens]),
State1 = State#file_appender{format=Tokens},
{ok, ok, State1};
handle_call({change_level, Level}, State) ->
State2 = State#file_appender{level = Level},
?LOG2("Changed level to ~p~n",[Level]),
{ok, ok, State2};
handle_call(_Request, State) ->
Reply = ok,
{ok, Reply, State}.
Expand Down

0 comments on commit 97137ee

Please sign in to comment.