anchor.diff:  	_ ->
   	    log(normal, Msg)
       end,
  -    case catch gen_server:cast(logger, {quit}, 1000) of
  +    case catch gen_server:call(logger, {quit}, 1000) of
   	{ok} ->
   	    ok;
           _ ->
  
positive.code: init([Basename]) ->
      %% Check if we should rotate log files when they reach a upper
      %% limit in size (bytes). Defaults to 250 MB.
      case sipserver:get_env(max_logfile_size, 250 * 1024 * 1024) of
  	none -> ok;
  	Size ->
  	    %% Set up a timer to do the size checking every 60 seconds
  	    {ok, T} = timer:send_interval(60 * 1000, logger, {check_logfile_size, Size})
  
negative.code: %%          {stop, Reason, State}            (terminate/2 is called)
  %%--------------------------------------------------------------------
  handle_cast({log, Level, TimeStamp, Format, Arguments, Pid}, State) ->
      case Level of
  	error ->
  	    log_to_device(State#state.error_iodev, Level, TimeStamp, Format, Arguments, Pid),
  	    log_to_device(State#state.normal_iodev, Level, TimeStamp, Format, Arguments, Pid),
  	    log_to_device(State#state.debug_iodev, Level, TimeStamp, Format, Arguments, Pid), 
  	    log_to_stdout(Level, TimeStamp, Format, Arguments, Pid);
  	normal ->
  	    log_to_device(State#state.normal_iodev, Level, TimeStamp, Format, Arguments, Pid),
  	    log_to_device(State#state.debug_iodev, Level, TimeStamp, Format, Arguments, Pid),
  	    log_to_stdout(Level, TimeStamp, Format, Arguments, Pid);
  	debug ->
  	    log_to_device(State#state.debug_iodev, Level, TimeStamp, Format, Arguments, Pid)
      end,
      {noreply, State};
  
  