private void WriteTestLogs(Castle.Core.Logging.ILogger logger) { logger.Debug("Testing debug"); logger.Warn("Testing warning"); logger.Info("Testing info"); }
/// <summary> /// Same as ILogger.Warn, except this automatically prepends calling method's name /// </summary> /// <param name="logger"></param> /// <param name="message"></param> public static void W(this Castle.Core.Logging.ILogger logger, string message, Exception exception) { var method = LogManager.GetMethod(); logger.Warn(method.Name + ": " + message, exception); }