anchor.diff:              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
   %%
  
positive.code: -include("leo_logger.hrl").
  -include_lib("eunit/include/eunit.hrl").
  
  -export([new/4, init/3,
           format/2, append/1, append/2, sync/1, rotate/2]).
  
  -define(MAX_MSG_BODY_LEN, 4096).
  
  
negative.code:              ok | {error, _}.
  sync(LogId) when is_atom(LogId) ->
      leo_logger_server:sync(LogId);
  sync(_L) ->
      ok.
  