C# 클래스 Sharpcraft.Logging.LogManager

Provides centralized logging utilities for Sharpcraft.
Using the default config files, the log files will be contained withing the "log" subfolder. The format of the log file names will be "Sharpcraft_yyyy-mm-dd.log".
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft

공개 메소드들

메소드 설명
GetLogger ( object sender ) : log4net.ILog

Get an ILog to utilize logging.

By using this method to get a logger instead of LogManager.GetLogger, you avoid the need to call XmlConfigurator.Configure in every class you want to log from.

LoadConfig ( bool debug = false ) : void

Load the logger config.

메소드 상세

GetLogger() 공개 정적인 메소드

Get an ILog to utilize logging.
By using this method to get a logger instead of LogManager.GetLogger, you avoid the need to call XmlConfigurator.Configure in every class you want to log from.
public static GetLogger ( object sender ) : log4net.ILog
sender object Object or Type reference for the object requiring logger.
리턴 log4net.ILog

LoadConfig() 공개 정적인 메소드

Load the logger config.
public static LoadConfig ( bool debug = false ) : void
debug bool true to load debug config, false otherwise. /// Defaults to false.
리턴 void