private static void LogWithCustomType( Logger logger, LogType type, string message, params object[] args ) { var meta = LogMeta.Blank; meta.Type = type; if ( args.Any() ) message = string.Format( message, args ); logger.LogEntry( new LogEntry( message, meta ) ); }
private static void LogWithCustomType( Logger logger, LogType type, string message, params object[] args ) { Contract.Assert( logger != null ); var meta = GetLogMeta( logger, type ); if ( args.Any() ) message = string.Format( message, args ); logger.LogEntry( new LogEntry( message, meta ) ); }