anchor.diff:               ok | {error, _}.
   sync(LogId) when is_atom(LogId) ->
       leo_logger_server:sync(LogId);
  -sync(State) when is_record(State, logger_state) ->
  -    leo_logger_appender_file:sync(State);
   sync(_L) ->
       ok.
  -
  -%% @doc Rotate a log
  -%%
  --spec rotate({integer(), integer(), integer(), integer()}, #logger_state{}) ->
  -             {ok, #logger_state{}}.
  -rotate(Hours, State) ->
  -    leo_logger_appender_file:rotate(Hours, State).
  -
  
positive.code:             leo_logger_server:append(?LOG_APPEND_SYNC, LogId, Log, 0)
      end.
  
  -spec append(#message_log{}, #logger_state{}) ->
               #logger_state{}.
  append(Log, State) ->
      leo_logger_appender_file:append(Log, State).
  
  
  %% @doc Sync a log file
  %%
  
negative.code: -include("leo_logger.hrl").
  -include_lib("eunit/include/eunit.hrl").
  
  -export([new/4, format/2, append/1, sync/1]).
  
  -define(MAX_MSG_BODY_LEN, 4096).
  
  