Example #1
0
 private void WriteTestLogs(Castle.Core.Logging.ILogger logger)
 {
     logger.Debug("Testing debug");
     logger.Warn("Testing warning");
     logger.Info("Testing info");
 }
Example #2
0
        /// <summary>
        /// Same as ILogger.Info, except this automatically prepends calling method's name
        /// </summary>
        /// <param name="logger"></param>
        /// <param name="message"></param>
        public static void I(this Castle.Core.Logging.ILogger logger, string message)
        {
            var method = LogManager.GetMethod();

            logger.Info(method.Name + ": " + message);
        }