C# Class Ivony.Logs.LogExtensions

提供记录日志的一系列扩展方法
显示文件 Open project: Ivony/LogUtility

Public Methods

Method Description
LogCrashError ( this logger, string message ) : void

记录一个引起系统崩溃无法恢复的错误信息

LogError ( this logger, string message ) : void

记录一个错误信息

LogException ( this logger, Exception exception ) : void

记录一个异常信息

LogFatalError ( this logger, string message ) : void

记录一个致命错误信息

LogImportantInfo ( this logger, string message ) : void

记录一个重要信息日志

LogInfo ( this logger, string message ) : void

记录一个信息性日志

LogWarning ( this logger, string message ) : void

记录一个警告信息

Private Methods

Method Description
GetLogMeta ( Logger logger, LogType type ) : Ivony.Logs.LogMeta
LogWithCustomType ( Logger logger, LogType type, string message ) : void

Method Details

LogCrashError() public static method

记录一个引起系统崩溃无法恢复的错误信息
public static LogCrashError ( this logger, string message ) : void
logger this 日志记录器
message string 日志消息
return void

LogError() public static method

记录一个错误信息
public static LogError ( this logger, string message ) : void
logger this 日志记录器
message string 日志消息
return void

LogException() public static method

记录一个异常信息
public static LogException ( this logger, Exception exception ) : void
logger this 日志记录器
exception System.Exception 异常对象
return void

LogFatalError() public static method

记录一个致命错误信息
public static LogFatalError ( this logger, string message ) : void
logger this 日志记录器
message string 日志消息
return void

LogImportantInfo() public static method

记录一个重要信息日志
public static LogImportantInfo ( this logger, string message ) : void
logger this 日志记录器
message string 日志消息
return void

LogInfo() public static method

记录一个信息性日志
public static LogInfo ( this logger, string message ) : void
logger this 日志记录器
message string 日志消息
return void

LogWarning() public static method

记录一个警告信息
public static LogWarning ( this logger, string message ) : void
logger this 日志记录器
message string 日志消息
return void