106 lines
3.7 KiB
C#
106 lines
3.7 KiB
C#
|
|
using System;
|
|||
|
|
|
|||
|
|
namespace APT.Infrastructure.Core
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 日志记录器
|
|||
|
|
/// </summary>
|
|||
|
|
public interface ILog4netLogger : IDependInject
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Debug"/>日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="message">日志消息</param>
|
|||
|
|
void Debug(object message);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Debug"/>格式化日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="format">日志消息格式</param>
|
|||
|
|
/// <param name="args">格式化参数</param>
|
|||
|
|
void Debug(string format, params object[] args);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Info"/>日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="message">日志消息</param>
|
|||
|
|
void Info(object message);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入格式化日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="format">日志消息格式</param>
|
|||
|
|
/// <param name="args">格式化参数</param>
|
|||
|
|
void Info(string format, params object[] args);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="message">日志消息</param>
|
|||
|
|
void Warn(object message);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入格式化日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="format">日志消息格式</param>
|
|||
|
|
/// <param name="args">格式化参数</param>
|
|||
|
|
void Warn(string format, params object[] args);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Error"/>日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="message">日志消息</param>
|
|||
|
|
void Error(object message);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Error"/>格式化日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="format">日志消息格式</param>
|
|||
|
|
/// <param name="args">格式化参数</param>
|
|||
|
|
void Error(string format, params object[] args);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Error"/>日志消息,并记录异常
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="message">日志消息</param>
|
|||
|
|
/// <param name="exception">异常</param>
|
|||
|
|
void Error(object message, Exception exception);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Error"/>格式化日志消息,并记录异常
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="format">日志消息格式</param>
|
|||
|
|
/// <param name="exception">异常</param>
|
|||
|
|
/// <param name="args">格式化参数</param>
|
|||
|
|
void Error(string format, Exception exception, params object[] args);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Fatal"/>日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="message">日志消息</param>
|
|||
|
|
void Fatal(object message);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Fatal"/>格式化日志消息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="format">日志消息格式</param>
|
|||
|
|
/// <param name="args">格式化参数</param>
|
|||
|
|
void Fatal(string format, params object[] args);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Fatal"/>日志消息,并记录异常
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="message">日志消息</param>
|
|||
|
|
/// <param name="exception">异常</param>
|
|||
|
|
void Fatal(object message, Exception exception);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 写入<see cref="LogLevel.Fatal"/>格式化日志消息,并记录异常
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="format">日志消息格式</param>
|
|||
|
|
/// <param name="exception">异常</param>
|
|||
|
|
/// <param name="args">格式化参数</param>
|
|||
|
|
void Fatal(string format, Exception exception, params object[] args);
|
|||
|
|
}
|
|||
|
|
}
|