public static void RemoveALibReportWriter( [CallerLineNumber] int cln= 0,[CallerFilePath] String csf="",[CallerMemberName] String cmn="" ) { #if ALOX_DBG_LOG // replace the report writer (if we replaced it before) if( DebugReportWriter != null ) { Report.GetDefault().PopWriter( DebugReportWriter ); DebugReportWriter= null; } #endif }
public static void AddALibReportWriter( Lox lox= null, [CallerLineNumber] int cln= 0,[CallerFilePath] String csf="",[CallerMemberName] String cmn="" ) { #if ALOX_DBG_LOG ALIB.ASSERT_WARNING( DebugReportWriter == null, "Log.AddReportWriter(): ALoxReportWriter already created." ); // replace the ReportWriter if ( Report.GetDefault().PeekWriter() == ConsoleReportWriter.Singleton ) Report.GetDefault().PushWriter( DebugReportWriter= new ALoxReportWriter( lox ) ); #endif }