/// <summary> /// /// </summary> /// <param name="__message"></param> public LogRecord(Level __level, string __message) { this.level_ = __level; this.sequence_number_ = CurrentSequenceNumber++; this.message_ = __message; this.register_time_ = DateTime.Now; this.source_class_name_ = string.Empty; this.source_method_name_ = string.Empty; this.thrown_ = null; }
/// <summary> /// /// </summary> /// <param name="__level"></param> /// <param name="__source_class"></param> /// <param name="__source_method"></param> /// <param name="__message"></param> /// <param name="__thrown"></param> /// <param name="__params"></param> public void log(Level __level, string __source_class, string __source_method, string __message, Exception __thrown, object[] __params) { LogRecord record = new LogRecord( __level, string.Format( __message, __params ) ); record.sourceClassName = __source_class; record.sourceMethodName = __source_method; record.thrown = __thrown; log( record ); }
/// <summary> /// /// </summary> /// <param name="__level"></param> /// <param name="__message"></param> /// <param name="__source_class"></param> /// <param name="__source_method"></param> /// <param name="__thrown"></param> public void log(Level __level, string __source_class, string __source_method, string __message, Exception __thrown) { LogRecord record = new LogRecord( __level, __message ); record.sourceClassName = __source_class; record.sourceMethodName = __source_method; record.thrown = __thrown; log( record ); }
/// <summary> /// /// </summary> /// <param name="__level"></param> /// <param name="__source_class"></param> /// <param name="__source_method"></param> /// <param name="__message"></param> /// <param name="__param1"></param> public void log(Level __level, string __source_class, string __source_method, string __message, object __param1) { LogRecord record = new LogRecord( __level, string.Format( __message, __param1 ) ); record.sourceClassName = __source_class; record.sourceMethodName = __source_method; log( record ); }
/// <summary> /// /// </summary> /// <param name="__level"></param> /// <param name="__source_class"></param> /// <param name="__source_method"></param> /// <param name="__message"></param> public void log(Level __level, string __source_class, string __source_method, string __message) { LogRecord record = new LogRecord( __level, __message ); record.sourceClassName = __source_class; record.sourceMethodName = __source_method; log( record ); }
/// <summary> /// /// </summary> /// <param name="__level"></param> /// <param name="__message"></param> /// <param name="__params"></param> public void log(Level __level, string __message, params object[] __params) { LogRecord record = new LogRecord( __level, string.Format( __message, __params ) ); log( record ); }
/// <summary> /// /// </summary> /// <param name="__level"></param> /// <param name="__message"></param> /// <param name="__thrown"></param> public void log(Level __level, string __message, Exception __thrown) { LogRecord record = new LogRecord( __level, __message ); record.thrown = __thrown; log( record ); }
/// <summary> /// /// </summary> /// <param name="__message"></param> public void log(Level __level, string __message) { LogRecord record = new LogRecord( __level, __message ); log( record ); }
/// <summary> /// /// </summary> /// <param name="__level"></param> /// <returns></returns> public bool isLoggable(Level __level) { return this.level_.intValue() <= __level.intValue(); }