IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Base IGlib class for reporting, tracing and logging; provides a global reporter and a basis for creation of local reporters. This class is identical to the IGLib class (copied directly). IN EFA, refer to the derived class Reporter! More...
Classes | |
class | TWClass |
A class for storing TextWriters and some data associated with them (such as the name of the file from which a TextWriter was created), which enables searching on basis of this data. More... | |
Public Member Functions | |
ReporterBase () | |
Constructor. Initializes all error reporting delegates to default values and sets auxliary object to null. Auxiliary object Obj is set to null. More... | |
ReporterBase (object obj, ReportDelegate reportdelegate, ReportLocationDelegate locationdelegate, ReportMessageDelegate messagedelegate, ReserveReportErrorDelegate reservereportdelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates that are not specified are set to default values. More... | |
ReporterBase (object obj, ReportDelegate reportdelegate, ReportLocationDelegate locationdelegate, ReportMessageDelegate messagedelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates that are not specified are set to default values. More... | |
ReporterBase (object obj, ReportDelegate reportdelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and the delegate to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates for assembling the error location string and error message string are set to their default values, which are adapted to console-like eror reporting systems. More... | |
ReporterBase (object obj, ReportDelegate reportdelegate, ReserveReportErrorDelegate reservereportdelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates for assembling the error locatin and error message string are set to their default values, which are adapted to console-like eror reporting systems. More... | |
void | Init (object obj, ReportDelegate reportdelegate, ReportLocationDelegate locationdelegate, ReportMessageDelegate messagedelegate, ReserveReportErrorDelegate reservereportdelegate) |
Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates that are not specified are set to default values. More... | |
void | Init () |
Initializes all error reporting delegates to default values and sets auxliary object to null. Auxiliary object Obj is set to null. More... | |
void | Init (object obj, ReportDelegate reportdelegate, ReportLocationDelegate locationdelegate, ReportMessageDelegate messagedelegate) |
Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates that are not specified are set to default values. More... | |
void | Init (object obj, ReportDelegate reportdelegate) |
Initializes the error reporter by the specified auxiliary object and the delegate to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates for assembling the error location string and error message string are set to their default values, which are adapted to console-like eror reporting systems. More... | |
void | Init (object obj, ReportDelegate reportdelegate, ReserveReportErrorDelegate reservereportdelegate) |
Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates for assembling the error locatin and error message string are set to their default values, which are adapted to console-like eror reporting systems. More... | |
void | Dispose () |
bool | AppSettingsRead (string groupname) |
Returns a flag that tells whether configuration settings with a given group name have already been read for this reporter. More... | |
bool | AppSettingsRead () |
Returns a flag that tells whether general configuration settings (not belonging to any group) have already been read for this reporter. More... | |
void | ReadAppSettings (string groupname, bool onlyonce) |
Reads settings for a specified named group of reporters from the application configuration file. More... | |
void | ReadAppSettings (string groupname) |
Reads settings for a specified named group of reporters from the application configuration file. More... | |
void | ReadAppSettings () |
Reads common reporter settings (i.e. settings that are not assigned for any named group) from the application configuration file. More... | |
void | IncreaseDepth () |
Increases indentation level by 1. More... | |
void | IncreaseDepth (int numlevels) |
Increases indentation level by the specified number of levels (can be 0 or negative). More... | |
void | DecreaseDepth () |
Decreases indentation level by 1. More... | |
void | DecreaseDepth (int numlevels) |
Decreases indentation level by the specified number of levels (can be 0 or negative). More... | |
void | ResetLevels () |
Resets the various kinds of reporting levels to default values. More... | |
bool | DoReporting (ReportType reptype) |
Returns true if the report of a given type should be shown by user interface (according to ReportingLevel), and false if not. More... | |
bool | DoLogging (ReportType reptype) |
Returns true if the report of a given type should be logged in log files (according to ReportingLevel), and false if not. More... | |
bool | DoTracing (ReportType reptype) |
Returns true if the report of a given type should traced (according to ReportingLevel), and false if not. More... | |
virtual void | Report (ReportType messagetype, string location, string message, Exception ex) |
Basic reporting method (overloaded). Launches an error report, a warning report or other kind of report/message. Supplemental data (such as objects necessary to launch visualize the report or operation flags) are obtained from the class' instance. More... | |
void | Report (ReportType messagetype, string message, Exception ex) |
Launches a report. Predominantly for error and warning reports. More... | |
void | Report (ReportType messagetype, Exception ex, string location) |
Launches a report. Predominantly for error and warning reports. More... | |
void | Report (ReportType messagetype, Exception ex) |
Launches a report. Predominantly for error and warning reports. More... | |
void | Report (ReportType messagetype, string location, string message) |
Launches a report. More... | |
void | Report (ReportType messagetype, string message) |
Launches a report. More... | |
void | ReportError (string location, string message, Exception ex) |
Basic error reporting method (overloaded). Supplemental data (such as objects necessary to launch visualize the report or operation flags) are obtained from the class' instance. More... | |
void | ReportError (string message, Exception ex) |
Launches an error report. More... | |
void | ReportError (Exception ex, string location) |
Launches an error report. More... | |
void | ReportError (Exception ex) |
Launches an error report. Predominantly for error and warning reports. More... | |
void | ReportError (string location, string message) |
Launches an error report. More... | |
void | ReportError (string message) |
Launches an error report. More... | |
void | ReportWarning (string location, string message, Exception ex) |
Basic warning reporting method (overloaded). Supplemental data (such as objects necessary to launch visualize the report or operation flags) are obtained from the class' instance. More... | |
void | ReportWarning (string message, Exception ex) |
Launches a warning report. More... | |
void | ReportWarning (Exception ex, string location) |
Launches a warning report. More... | |
void | ReportWarning (Exception ex) |
Launches a warning report. Predominantly for error and warning reports. More... | |
void | ReportWarning (string location, string message) |
Launches a warning report. More... | |
void | ReportWarning (string message) |
Launches a warning report. More... | |
void | ReportInfo (Exception ex) |
Launches an info. More... | |
void | ReportInfo (string location, string message) |
Launches an info. More... | |
void | ReportInfo (string message) |
Launches an info. More... | |
bool | SetTW (ref TextWriter tw, ref bool disptw, string filename, bool append, bool writeintro, bool disposewriter) |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | SetTextWriter (TextWriter writer) |
Sets the text writer to which reporting is also performed. More... | |
bool | SetTextWriter (TextWriter writer, bool writeintro) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextWriter (TextWriter writer, bool writeintro, bool disposewriter) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextWriter (Stream stream) |
Creates a TextWriter upon the stream and sets it as the text writer to which reporting is also performed. More... | |
bool | SetTextWriter (Stream stream, bool writeintro) |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextWriter (Stream stream, bool writeintro, bool disposewriter) |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextWriter (string filename) |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed. The file is overwritten. More... | |
bool | SetTextWriter (string filename, bool append) |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed, where the caller specifies either to overwrite the file or to append to it. More... | |
bool | SetTextWriter (string filename, bool append, bool writeintro) |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | SetTextWriter (string filename, bool append, bool writeintro, bool disposewriter) |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | AddTextWriter (TextWriter writer) |
Sets the text writer to which reporting is also performed. More... | |
bool | AddTextWriter (TextWriter writer, bool writeintro) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextWriter (TextWriter writer, bool writeintro, bool disposewriter) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextWriter (Stream stream) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. More... | |
bool | AddTextWriter (Stream stream, bool writeintro) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextWriter (Stream stream, bool writeintro, bool disposewriter) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextWriter (string filename) |
Creates a TextWriter from the file name and adds it to the list of TextWriters on which reporting is also performed. The file is overwritten. More... | |
bool | AddTextWriter (string filename, bool append) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies either to overwrite the file or to append to it. More... | |
bool | AddTextWriter (string filename, bool append, bool writeintro) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | AddTextWriter (string filename, bool append, bool writeintro, bool disposewriter) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | RemoveTextWriters () |
Removes all text writers from the TextWriter subsystem. If appropriate, the corresponding text writer is closed. More... | |
bool | RemoveTextWriter () |
Removes the default text writer from the TextWriter subsystem. If appropriate, the corresponding text writer is closed. More... | |
bool | RemoveTextWriter (TextWriter writer) |
Removes the first object from Writers that contains the specified TextWriter. If appropriate, the corresponding text writer is closed. More... | |
bool | RemoveTextWriter (Stream stream) |
Removes the first object from Writers whose TextWriter has been created form the specified stream. If appropriate, the corresponding text writer is closed. More... | |
bool | RemoveTextWriter (string filename) |
Removes the first object from Writers whose TextWriter has been created form the file with the specified name. If appropriate, the corresponding text writer is closed. More... | |
List< TextWriter > | TextWriterWriters () |
Returns a list of all text writers that are currently used by the reporter's text writer. Only text writers that are actually writable are included. More... | |
List< TextWriter > | TextWriterWriters (bool writableonly) |
Returns a list of all text writers that are currently used by the reporter's text writer. Warning: Beware of thread safety issues! Blocks of code where the returned list is used should be enclosed in lock(reporter.lockobj){...} block (where reporter is the object through which this method was called). More... | |
int | TextWriterNumWriters () |
Returns the current number of text writers used by the reporter's text logging module. Only text writers that are actually writable are counted. More... | |
int | TextWriterNumWriters (bool writableonly) |
Returns the current number of TextWriters used by the reporter's text logging module. More... | |
int | TextWriterFlush () |
Flushes all text writers of the Writer's TextWriter subsystem. More... | |
int | TextWriterWrite (string str) |
Writes a string to all text writers of the Writer's TextWriter subsystem. More... | |
int | TextWriterWriteLine (string str) |
Similar to TextWriterWrite(), except that a newline is added at the end of the string. More... | |
bool | SetTextLogger (TextWriter writer) |
Sets the text writer to which reporting is also performed. More... | |
bool | SetTextLogger (TextWriter writer, bool writeintro) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextLogger (TextWriter writer, bool writeintro, bool disposewriter) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextLogger (Stream stream) |
Creates a TextWriter upon the stream and sets it as the text writer to which reporting is also performed. More... | |
bool | SetTextLogger (Stream stream, bool writeintro) |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextLogger (Stream stream, bool writeintro, bool disposewriter) |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTextLogger (string filename) |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed. The file is overwritten. More... | |
bool | SetTextLogger (string filename, bool append) |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed, where the caller specifies either to overwrite the file or to append to it. More... | |
bool | SetTextLogger (string filename, bool append, bool writeintro) |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | SetTextLogger (string filename, bool append, bool writeintro, bool disposewriter) |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | AddTextLogger (TextWriter writer) |
Sets the text writer to which reporting is also performed. More... | |
bool | AddTextLogger (TextWriter writer, bool writeintro) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextLogger (TextWriter writer, bool writeintro, bool disposewriter) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextLogger (Stream stream) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. More... | |
bool | AddTextLogger (Stream stream, bool writeintro) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextLogger (Stream stream, bool writeintro, bool disposewriter) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTextLogger (string filename) |
Creates a TextWriter from the file name and adds it to the list of TextWriters on which reporting is also performed. The file is overwritten. More... | |
bool | AddTextLogger (string filename, bool append) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies either to overwrite the file or to append to it. More... | |
bool | AddTextLogger (string filename, bool append, bool writeintro) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | AddTextLogger (string filename, bool append, bool writeintro, bool disposewriter) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | RemoveTextLoggers () |
Removes all text writers from the TextLogger subsystem. If appropriate, the corresponding text writer is closed. More... | |
bool | RemoveTextLogger () |
Removes the default text writer from the TextLogger subsystem. If appropriate, the corresponding txt writer is closed. More... | |
bool | RemoveTextLogger (TextWriter writer) |
Removes the first object from Loggers that contains the specified TextWriter. If appropriate, the corresponding text writer is closed. More... | |
bool | RemoveTextLogger (Stream stream) |
Removes the first object from Loggers whose TextWriter has been created form the specified stream. If appropriate, the corresponding text writer is closed. More... | |
bool | RemoveTextLogger (string filename) |
Removes the first object from Loggers whose TextWriter has been created form the file with the specified name. If appropriate, the corresponding text writer is closed. More... | |
List< TextWriter > | TextLoggerWriters () |
Returns a list of all text writers that are currently used by the reporter's text logger. Only text writers that are actually writable are included. More... | |
List< TextWriter > | TextLoggerWriters (bool writableonly) |
Returns a list of all text writers that are currently used by the reporter's text logger. Warning: Beware of thread safety issues! Blocks of code where the returned list is used should be enclosed in lock(reporter.lockobj){...} block (where reporter is the object through which this method was called). More... | |
int | TextLoggerNumWriters () |
Returns the current number of text writers used by the reporter's text logging module. Only text writers that are actually writable are counted. More... | |
int | TextLoggerNumWriters (bool writableonly) |
Returns the current number of TextWriters used by the reporter's text logging module. More... | |
int | TextLoggerFlush () |
Flushes all text writers of the Writer's TextLogger subsystem. More... | |
int | TextLoggerWrite (string str) |
Writes a string to all text writers of the Writer's TextLogger subsystem. More... | |
int | TextLoggerWriteLine (string str) |
Similar to TextLoggerWrite(), except that a newline is added at the end of the string. More... | |
Static Public Member Functions | |||||||||||
static Exception | ReviseException (Exception ex, string messageaddition, Type newtype, bool sametype, bool keepmessage, bool oldasinner) | ||||||||||
Takes an existing exception and returns a modified exception based on it. More... | |||||||||||
static Exception | ReviseException (Exception ex, string messageaddition) | ||||||||||
Takes an existing exception and returns a modified exception based on it. The returned exception is of the same type as the original one. Original message is appended to messageaddition . The created exception does not have an inner exception. More... | |||||||||||
static Exception | ReviseException (Exception ex, string messageaddition, bool keepmessage) | ||||||||||
Takes an existing exception and returns a modified exception based on it. The returned exception is of the same type as the original one. The created exception does not have an inner exception. More... | |||||||||||
static Exception | ReviseException (Exception ex, string messageaddition, bool keepmessage, bool oldasinner) | ||||||||||
Takes an existing exception and returns a modified exception based on it. The returned exception is of the same type as the original one. More... | |||||||||||
static Exception | ReviseException (Exception ex, string messageaddition, Type newtype) | ||||||||||
Takes an existing exception and returns a modified exception based on it. Original message is appended to messageaddition . The created exception does not have an inner exception. More... | |||||||||||
static Exception | ReviseException (Exception ex, string messageaddition, Type newtype, bool keepmessage) | ||||||||||
Takes an existing exception and returns a modified exception based on it. The created exception does not have an inner exception. More... | |||||||||||
static Exception | ReviseException (Exception ex, string messageaddition, Type newtype, bool keepmessage, bool oldasinner) | ||||||||||
Takes an existing exception and returns a modified exception based on it. More... | |||||||||||
static void | GetAppSetting (string key, ref string value, out bool assigned) | ||||||||||
Reads a string value from the application configuration file (e.g. app.config) and assigns it to the specified variable. More... | |||||||||||
static void | GetAppSetting (string key, ref char value, out bool assigned) | ||||||||||
Reads a character value from the application configuration file and assigns it to the specified variable. More... | |||||||||||
static void | GetAppSetting (string key, ref List< char > value, out bool assigned) | ||||||||||
Reads a list of characters from the application configuration file and assigns it to the specified variable. More... | |||||||||||
static void | GetAppSetting (string key, ref int value, out bool assigned) | ||||||||||
Reads an integer value from the application configuration file and assigns it to the specified variable. More... | |||||||||||
static void | GetAppSetting (string key, ref double value, out bool assigned) | ||||||||||
Reads a floating point value from the application configuration file and assigns it to the specified variable. More... | |||||||||||
static void | GetAppSetting (string key, ref bool value, out bool assigned) | ||||||||||
Reads a boolean value from the application configuration file and assigns it to the specified variable. Numerical representation is allowed (0 for false, non-zero for true) More... | |||||||||||
static void | GetAppSetting (string key, ref bool value, out bool assigned, bool otherformatsallowed) | ||||||||||
Reads a boolean value from the application configuration file and assigns it to the specified variable. More... | |||||||||||
static void | GetAppSetting (string key, ref ReportLevel value, out bool assigned) | ||||||||||
Reads an integer value from the application configuration file and assigns it to the specified variable. More... | |||||||||||
static bool | DoLaunch (ReportType reptype, ReportLevel replevel) | ||||||||||
Returns true if the report of a given type will be launched at the given reporting level, and false if not. More... | |||||||||||
static EventLogEntryType | ReportType2EventLogEntryType (ReportType rt) | ||||||||||
Returns the System.Diagnostics.EventLogEntryType value corresponding to the given ReportType. Remark: FailureAudit and SuccessAudit can not be generated because they don't have representation in ReportType. More... | |||||||||||
static ReportType | EventLogEntryType2ReportType (EventLogEntryType el) | ||||||||||
Returns the ReportType value corresponding to the given System.Diagnostics.EventLogEntryType. Remark: FailureAudit and SuccessAudit do not have representation in ReportType and are mapped to Error and Warning, respectively. More... | |||||||||||
static TraceLevel | ReportLevel2TraceLevel (ReportLevel level) | ||||||||||
Returns the System.Diagnostics.TraceLevel value corresponding to the given ReportLevel. More... | |||||||||||
static ReportLevel | TraceLevel2ReportLevel (TraceLevel tl) | ||||||||||
Returns the ReportLevel value corresponding to the given System.Diagnostics.TraceLevel. More... | |||||||||||
static string | FormatLogMsgDefault (int depth, int initialindent, int indentincrement, char indentchar, ReportType type, string location, string message, ReportSource source) | ||||||||||
Formats a one-line message for tracing output. More... | |||||||||||
static string | FormatTraceMsgDefault (int depth, int initialindent, int indentincrement, char indentchar, ReportType type, string location, string message, ReportSource source) | ||||||||||
Formats a one-line message for tracing output. More... | |||||||||||
static string | DefaultReportStringMessageBox (ReporterBase reporter, ReportType messagetype, string errorlocation, string errormessage) | ||||||||||
Auxiliary method that composes the complete message, including decoration, for reports launched in a message box. More... | |||||||||||
static string | DefaultReportStringConsole (ReporterBase reporter, ReportType messagetype, string errorlocation, string errormessage) | ||||||||||
Auxiliary method that composes the complete message, including decoration, for reports launched in consoles. More... | |||||||||||
static string | DefaultReportStringConsoleTimeStamp (ReporterBase reporter, ReportType messagetype, string errorlocation, string errormessage) | ||||||||||
Auxiliary method that composes the complete message, including decoration with a TIMESTAMP, for reports launched in consoles. More... | |||||||||||
static string | DefaultReportStringConsoleBas (ReporterBase reporter, ReportType messagetype, string errorlocation, string errormessage, bool timestamp) | ||||||||||
Base method for DefaultReportStringConsole and DefaultReportStringConsoleTimeStamp. More... | |||||||||||
static void | DefaultReportConsole (ReporterBase reporter, ReportType messagetype, string errorlocation, string errormessage) | ||||||||||
Default delegate for reporting. For parameter descriptions, see ReportDlg. More... | |||||||||||
static string | DefaultLocationString (ReporterBase reporter, ReportType messagetype, string location, Exception ex) | ||||||||||
Default delegate for assembly of the location string when reporting on consoles. For parameter descriptions, see ReportMessageDlg. More... | |||||||||||
static string | DefaultMessageString (ReporterBase reporter, ReportType messagetype, string basicmessage, Exception ex) | ||||||||||
Default delegate for message assembly of the message string when reporting on consoles. For parameter descriptions, see ReportMessageDlg. More... | |||||||||||
static string | DefaultReserveReportMessage (ReporterBase reporter, ReportType messagetype, string location, string message, Exception ex, Exception ex1) | ||||||||||
Default function function for assembling reserve error reporting message. This is put outside the DefaultReserveReportError() method such that the same assembly method can be used in different systems. The method is considered bulletproof.
| |||||||||||
static void | DefaultReserveReportError (ReporterBase reporter, ReportType messagetype, string location, string message, Exception ex, Exception ex1) | ||||||||||
Default function function for reserve error reporting (called if an exception is thrown in a reporting function). Writes a report to the application's standard console (if defined) and Reporter's text writers and loggers (when defined). Writing is unconditional (e.g., even if reporter.UseTextWriter = false or reporter.ReportingLevel = Off, a message is written to the TextWriter's output streams). More... | |||||||||||
static string | ErrorLocationString0 (Exception ex) | ||||||||||
Returns location string derived from ex, which includes information about the location where error occurred, specified by the source file name, function and line and column numbers. More... | |||||||||||
static string | ErrorLocationString0 (string location, Exception ex) | ||||||||||
Returns Error location string derived from ex, which includes information about location of error occurrence and is prepended by additional location information (such as class name) More... | |||||||||||
Public Attributes | |
ReportDelegate | ReportDlg = null |
Delegate that performs error reporting. It calls delegates ReportDlg to assemble error location information and ReportMessageDlg to assemble error message. Then it uses both to assemble the final decorated error message and launches it in its own way. More... | |
ReportLocationDelegate | ReportLocationDlg = null |
Delegate that assembles the error location string. More... | |
ReportMessageDelegate | ReportMessageDlg = null |
Delegate that assembles the eror message string. More... | |
ReserveReportErrorDelegate | ReserveReportErrorDlg = null |
Delegate that reports an error when the error reporting function throws an exception. Functions assigned to this delegate should really be BULLETPROOF. If not assigned then the internal method of the corresponding class is called. It is highly recommended to do reporting in small steps enclosed in try/catch blocks and especially to use the error reporting object very carefully (because it may not be initialized properly, which can also be the reason that the error reporting function crashes). It is higly recommended to first call the DefaultReserveReportError() within the function assigned to this delegate, or at least to use the DefaultReserveReportMessage() method for assembly of the message shown. More... | |
bool | DebugMode = false |
Indicates that reporting suitable for debugging mode should be performed. A standard flag that can be used by the delegate functions. More... | |
ReportDelegate | ReportDlgTextWriter = new ReportDelegate(DefaultReport_TextWriter) |
Delegate that performs reporting (actually logging) via text writer. More... | |
ReportLocationDelegate | ReportLocationDlgTextWriter = new ReportLocationDelegate(DefaultReportLocation_TextWriter) |
Delegate that assembles the location string for reporting via TextWriter. More... | |
ReportMessageDelegate | ReportMessageDlgTextWriter = new ReportMessageDelegate(DefaultReportMessage_TextWriter) |
Delegate that assembles the message string for reporting via text writer. More... | |
ReportDelegate | ReportDlgTextLogger = new ReportDelegate(DefaultReport_TextLogger) |
Delegate that performs reporting (actually logging) via text writer. More... | |
ReportLocationDelegate | ReportLocationDlgTextLogger = new ReportLocationDelegate(DefaultReportLocation_TextLogger) |
Delegate that assembles the location string for reporting via text logger. More... | |
ReportMessageDelegate | ReportMessageDlgTextLogger = new ReportMessageDelegate(DefaultReportMessage_TextLogger) |
Delegate that assembles the message string for reporting via text writer. More... | |
ReportSource | MsgSource = ReportSource.Unknown |
Indicates the source of the message (such as client, server, web service, etc.) More... | |
ReportDelegate | ReportDlgTrace = new ReportDelegate(DefaultReport_Trace) |
Delegate that performs reporting (logging) via Pado trace mechanism. It calls delegates ReportDlg to assemble error location information and ReportMessageDlg to assemble error message. Then it uses both to assemble the final decorated error message and launches it in its own way. More... | |
ReportLocationDelegate | ReportLocationDlgTrace = new ReportLocationDelegate(DefaultReportLocation_Trace) |
Delegate that assembles the error location string for reporting (logging) via Pado trace mechanism. More... | |
ReportMessageDelegate | ReportMessageDlgTrace = new ReportMessageDelegate(DefaultReportMessage_Trace) |
Delegate that assembles the eror message string for reporting (logging) via Pado trace mechanism. More... | |
Static Public Attributes | |
static bool | ReadGlobalAppSettings = true |
Indicates whether a global Reporter (or its derived class) should read settings from the application configuration file when initialized (default is true). More... | |
Protected Member Functions | |
virtual void | SetDefaultReportDlg () |
Sets the error reporting delegate to the default value. More... | |
virtual void | SetDefaultReportLocationDlg () |
Sets the error location assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.) More... | |
virtual void | SetDefaultReportMessageDlg () |
Sets the error message assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.) More... | |
virtual void | SetDefaultReserveReportErrorDlg () |
Sets the reserve error reporting delegate to the default value. More... | |
virtual void | InitBegin () |
Initial part of initialization. Auxiliary object is not affected because default delegates do not utilize it. More... | |
virtual void | InitEnd () |
Finalizing part of initialization. Auxiliary object is not affected because default delegates do not utilize it. More... | |
virtual void | Dispose (bool disposing) |
void | GetAppSetting (string reportername, string keyroot, ref string value, out bool assigned) |
Reads a string value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter. More... | |
void | GetAppSetting (string reportername, string keyroot, ref char value, out bool assigned) |
Reads a character value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter. More... | |
void | GetAppSetting (string reportername, string keyroot, ref List< char > value, out bool assigned) |
Reads a list of characters from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter. More... | |
void | GetAppSetting (string reportername, string keyroot, ref int value, out bool assigned) |
Reads an integer value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter. More... | |
void | GetAppSetting (string reportername, string keyroot, ref double value, out bool assigned) |
Reads a numeric value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter. More... | |
void | GetAppSetting (string reportername, string keyroot, ref bool value, out bool assigned) |
Reads a boolean value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter. More... | |
void | GetAppSetting (string reportername, string keyroot, ref ReportLevel value, out bool assigned) |
Reads a ReportLevel enumeration value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter. More... | |
void | AppSettingsReadWarning (string groupname) |
Launches an internal warning that the configuration settings belonging tot he specified group have already been read for this reporter. The warning is launched only if the settings have actually been read and if warnings of this type are switched on. More... | |
void | MarkAppSettingsRead (string groupname) |
Marks a specified group of settings as been read for the current reporter. More... | |
virtual void | ReadAppSettingsBasic (string groupname) |
Reads settings for a specified named group of reporters from the application configuration file. In the derived classes, this method should be overridden by the method that calls the base class' method. More... | |
void | SyncReportLevelWithTraceSwitch (TraceSwitch tswitch, ref ReportLevel level) |
Synchronizes the value of ReportLevel enumeration variable with the state of a TraceSwitch variable. Enumeration is synchronized according to the Level property of the switch. More... | |
void | SyncTraceSwitchWithReportLevel (ReportLevel level, TraceSwitch tswitch) |
Synchronizes the state of a TraceSwitch object with the value of the ReportLevel enumeration. More... | |
virtual void | ReserveReportErrorSpecific (ReportType messagetype, string location, string message, Exception ex, Exception ex1) |
Reportinf of internal reporter errors for the specific reporter class (overridden in derived classes). This method is called for internal error reports when the delegate for this job is not defined. More... | |
void | ReserveReportError (ReportType messagetype, string location, string message, Exception ex, Exception ex1) |
Used to report internal errors of the reporter. Designed to be bullet proof in order to ensure that improper behavior of the reporting system does not remain unnoticed. More... | |
virtual void | PrintIntro (TextWriter tw, string introtext, string programname) |
Writes to a textwriter the introduction text that is usually printed before logging starts. More... | |
bool | SetTW (ref TextWriter tw, ref bool disptw, TextWriter writer, bool writeintro, bool disposewriter) |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument. More... | |
bool | SetTW (ref TextWriter tw, ref bool disptw, Stream stream, bool writeintro, bool disposewriter) |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTW (ref List< TWClass > lwriters, TextWriter writer, bool writeintro, bool disposewriter) |
Adds another TextWriter to which reporting will also be performed. More... | |
bool | AddTW (ref List< TWClass > lwriters, Stream stream, bool writeintro, bool disposewriter) |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument. More... | |
bool | AddTW (ref List< TWClass > lwriters, string filename, bool append, bool writeintro, bool disposewriter) |
Creates a TextWriter from a specific file and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins. More... | |
bool | RemoveTW (List< TWClass > lwriters, TextWriter writer) |
Removes the first object from a list that contains the specified TextWriter. More... | |
bool | RemoveTW (List< TWClass > lwriters, Stream stream) |
Removes the first object from a list whose TextWriter has been created form the specified stream. More... | |
bool | RemoveTW (List< TWClass > lwriters, string filename) |
Removes the first object from a list whose TextWriter has been created form the file with the specified name. More... | |
virtual void | TextWriterPrintIntro (TextWriter tw) |
Writes to a textwriter the introduction text that is usually printed before logging starts. More... | |
virtual void | Report_TextWriter (ReportType messagetype, string location, string message, Exception ex) |
Launches a report via text writers. Report is launched by using special delegates for this kind of reporting. If the corresponding delegates for error location and message are not specified then general delegates are used for this purporse, or location and message string are simple assembled by this function. More... | |
virtual void | TextLoggerPrintIntro (TextWriter tw) |
Writes to a textwriter the introduction text that is usually printed before logging starts. More... | |
virtual void | Report_TextLogger (ReportType messagetype, string location, string message, Exception ex) |
Launches a report via text logger. Report is launched by using special delegates for this kind of reporting. If the corresponding delegates for error location and message are not specified then general delegates are used for this purporse, or location and message string are simple assembled by this function. More... | |
virtual void | Report_Trace (ReportType messagetype, string location, string message, Exception ex) |
Launches a report via Trace. Report is launched by using special delegates for this kind of reporting. If the corresponding delegates for error location and message are not specified then general delegates are used for this purporse, or location and message string are simple assembled by this function. More... | |
Static Protected Member Functions | |
static string | FullKey (string reportername, string keyroot) |
Returns a full keyroot of a specific configuration item with a reporter name specified. More... | |
static void | DefaultReport_TextWriter (ReporterBase reporter, ReportType messagetype, string location, string message) |
Default delegate for launching reports (actually logging reports) via text writer. More... | |
static string | DefaultReportLocation_TextWriter (ReporterBase reporter, ReportType messagetype, string location, Exception ex) |
Delegate for assembling a location string for this kind of report. More... | |
static string | DefaultReportMessage_TextWriter (ReporterBase reporter, ReportType messagetype, string basicmessage, Exception ex) |
Delegate for assembling a report message for this kind of report. More... | |
static void | DefaultReport_TextLogger (ReporterBase reporter, ReportType messagetype, string location, string message) |
Default delegate for launching reports (actually logging reports) via text writer. More... | |
static string | DefaultReportLocation_TextLogger (ReporterBase reporter, ReportType messagetype, string location, Exception ex) |
Delegate for assembling a location string for this kind of report. More... | |
static string | DefaultReportMessage_TextLogger (ReporterBase reporter, ReportType messagetype, string basicmessage, Exception ex) |
Delegate for assembling a report message for this kind of report. More... | |
static void | DefaultReport_Trace (ReporterBase reporter, ReportType messagetype, string location, string message) |
Delegat for launching a report via Trace. More... | |
static string | DefaultReportLocation_Trace (ReporterBase reporter, ReportType messagetype, string location, Exception ex) |
Delegate for assembling a location string for this kind of report. More... | |
static string | DefaultReportMessage_Trace (ReporterBase reporter, ReportType messagetype, string basicmessage, Exception ex) |
Delegate for assembling a report message for this kind of report. More... | |
Protected Attributes | |
const string | KeyPrefix = "ReporterMsg" |
const string | KeyLevelOn = "LevelOn" |
TraceSwitch | _ReportingSwitch = null |
object | _lockobj = new Object() |
Properties | |
static bool | GlobalInitialized [get] |
Gets the value indicating whether the global reporter of this class has already been initialized. More... | |
static ReporterBase | Global [get, private set] |
Gets the global reporter object. This is typically used for configuring the global reporter. More... | |
bool | AppSettingsWarnings [get, set] |
Gets or sets the flag that specifies whether a warning message is launched when reading of application settings is attempted more than once for the same named group of settings. More... | |
bool | IsGlobal [get, protected set] |
Indicates whether the current reporter is used as a global reporter or not. More... | |
int | Depth [get, set] |
Gets or sets the current indentation level for on-line output. This should normally be done by calling IncreaseDepth() or DecreaseDepth(). More... | |
int | TextLoggerIndentInitial [get, set] |
Gets or sets number fo initial indentation charactyers. More... | |
int | TextLoggerIndentSpacing [get, set] |
Gets or sets the number of indentation characters written per indentation level. More... | |
char | TextLoggerIndentCharacter [get, set] |
Gets or sets the indentation character. More... | |
ReportLevel | ReportingLevel [get, set] |
Gets or sets level of output for reporting (console output, message boxes, etc.). More... | |
ReportLevel | LoggingLevel [get, set] |
Gets or sets level of output for logging (writing to log files). More... | |
ReportLevel | TracingLevel [get, set] |
Gets or sets trace level (for external trace systems). More... | |
bool | TreatError [get] |
Returns a boolean value indicating whether errors are treated by the reporter in its current state. More... | |
bool | TreatWarning [get] |
Returns a boolean value indicating whether warnings are treated by the reporter in its current state. More... | |
bool | TreatInfo [get] |
Returns a boolean value indicating whether info messages are treated by the reporter in its current state. More... | |
bool | TreatUndefined [get] |
Returns a boolean value indicating whether undefined messages with the lowest priority are treated by the reporter in its current state. More... | |
ReportLevel | Level [get, set] |
Gets the level with the lowesst priority (out of reporting, logging and tracing level), or sets all levels to the assigned level. More... | |
virtual bool | this[ReportLevel level] [get, set] |
Indexer that returns true if messages of a given level are treated by the reporter (either by the reporting, logging or tracing part, according to the corresponding level states), or false if not (i.e. if all the levels are set lover than the index). In the case of assignment, when true is assigned, all levels that are set lower than the are set to index. Assignment with false should be used only exteptionally; but in this case all levels that are set higher or equal than the index are set one level below. More... | |
TraceSwitch | ReportingSwitch [get, set] |
Gets or sets the TraceSwitch that is synchronized with ReportingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the ReportingLevel, which will override its settings). More... | |
TraceSwitch | LoggingSwitch [get, set] |
Gets or sets the TraceSwitch that is synchronized with LoggingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the LoggingLevel, which will override its settings). More... | |
TraceSwitch | TracingSwitch [get, set] |
Gets or sets the TraceSwitch that is synchronized with TracingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the TracingLevel, which will override its settings). More... | |
bool | ThrowTestException [get, set] |
If true then the basic reporting function will throw an exception. This is intended predominantly for testing how the reporter behaves in case of internal errors. When the exception is thrown, the value is set back to false. If we want an exception to be thrown again then the value must be set to true once again. More... | |
object | Obj [get, set] |
Auxiliary object used by the delegates that perform error reporting. The object is used to provide additional information used in error reporting, or to provide objects that perform some actions in error reporting tasks, or both. It is left entirely to error reporting delegates to interpret the object's contents. More... | |
virtual object | lockobj [get] |
Object used for locking. More... | |
bool | UseTextWriter [get, set] |
Gets or sets the flag specifying whether reporting using a text writer is performed or not. More... | |
bool | TextWriterFlushing [get, set] |
Gets or sets the flag that tells whether or not the text writers are flushed after every message that is reported through them. More... | |
string | TextWriterIntroText [get, set] |
Gets or sets the introduction string that is written before logging to a TextWriter begins. If this is not specified then the reporter composes its own introduction string, eventually using programname (when defined). More... | |
string | TextWriterProgramName [get, set] |
String denoting the name of the program or other entity that uses the Reporter for logging. When introtext is not specified, this name is used in the introduction text composed by the reporter. More... | |
bool | TextWriterWriteIntro [get, set] |
Specifies whether introduction text is written before logging of messages begins or not. More... | |
bool | UseTextLogger [get, set] |
Gets or sets the flag specifying whether reporting using a text writer is performed or not. More... | |
bool | TextLoggerFlushing [get, set] |
Gets or sets the flag that tells whether or not the text writers are flushed after every message that is reported through them. More... | |
string | TextLoggerIntroText [get, set] |
Gets or sets the introduction string that is written before logging to a TextWriter begins. If this is not specified then the reporter composes its own introduction string, eventually using programname (when defined). More... | |
string | TextLoggerProgramName [get, set] |
String denoting the name of the program or other entity that uses the Reporter for logging. When introtext is not specified, this name is used in the introduction text composed by the reporter. More... | |
bool | TextLoggerWriteIntro [get, set] |
Specifies whether introduction text is written before logging of messages begins or not. More... | |
bool | UseTrace [get, set] |
Gets or sets the flag specifying whether reporting using the pado trace is performed or not. More... | |
![]() | |
bool | AppSettingsWarnings [get, set] |
Gets or sets the flag that specifies whether a warning message is launched when reading of application settings is attempted more than once for the same named group of settings. More... | |
bool | IsGlobal [get] |
Indicates whether the current reporter is used as a global reporter or not. More... | |
int | Depth [get, set] |
Gets or sets the current indentation level for on-line output. This should normally be done by calling IncreaseDepth() or DecreaseDepth(). More... | |
ReportLevel | ReportingLevel [get, set] |
Gets or sets level of output for reporting (console output, message boxes, etc.). More... | |
ReportLevel | LoggingLevel [get, set] |
Gets or sets level of output for logging (writing to log files). More... | |
ReportLevel | TracingLevel [get, set] |
Gets or sets trace level (for external trace systems). More... | |
bool | TreatError [get] |
Returns a boolean value indicating whether errors are treated by the reporter in its current state. More... | |
bool | TreatWarning [get] |
Returns a boolean value indicating whether warnings are treated by the reporter in its current state. More... | |
bool | TreatInfo [get] |
Returns a boolean value indicating whether info messages are treated by the reporter in its current state. More... | |
bool | TreatUndefined [get] |
Returns a boolean value indicating whether undefined messages with the lowest priority are treated by the reporter in its current state. More... | |
ReportLevel | Level [get, set] |
Gets the level with the lowesst priority (out of reporting, logging and tracing level), or sets all levels to the assigned level. More... | |
bool | this[ReportLevel level] [get, set] |
Indexer that returns true if messages of a given level are treated by the reporter (either by the reporting, logging or tracing part, according to the corresponding level states), or false if not (i.e. if all the levels are set lover than the index). In the case of assignment, when true is assigned, all levels that are set lower than the are set to index. Assignment with false should be used only exteptionally; but in this case all levels that are set higher or equal than the index are set one level below. More... | |
TraceSwitch | ReportingSwitch [get, set] |
Gets or sets the TraceSwitch that is synchronized with ReportingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the ReportingLevel, which will override its settings). More... | |
TraceSwitch | LoggingSwitch [get, set] |
Gets or sets the TraceSwitch that is synchronized with LoggingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the LoggingLevel, which will override its settings). More... | |
TraceSwitch | TracingSwitch [get, set] |
Gets or sets the TraceSwitch that is synchronized with TracingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the TracingLevel, which will override its settings). More... | |
object | Obj [get, set] |
Auxiliary object used by the delegates that perform error reporting. More... | |
object | lockobj [get] |
Object used for locking. More... | |
![]() | |
bool | UseTextWriter [get, set] |
Specifies whether or not TextWriter(s) are used by the Reporter to log messages. More... | |
string | TextWriterIntroText [get, set] |
Gets or sets the introduction string that is written before logging to a TextWriter begins. If this is not specified then the reporter composes its own introduction string, eventually using programname (when defined). More... | |
string | TextWriterProgramName [get, set] |
String denoting the name of the program or other entity that uses the Reporter for logging. When introtext is not specified, this name is used in the introduction text composed by the reporter. More... | |
bool | TextWriterWriteIntro [get, set] |
Specifies whether introduction text is written before logging of messages begins or not. More... | |
![]() | |
bool | UseTextLogger [get, set] |
Specifies whether or not TextLogger(s) are used by the Reporter to log messages. More... | |
int | TextLoggerIndentInitial [get, set] |
Gets or sets number fo initial indentation charactyers. More... | |
int | TextLoggerIndentSpacing [get, set] |
Gets or sets the number of indentation characters written per indentation level. More... | |
char | TextLoggerIndentCharacter [get, set] |
Gets or sets the indentation character. More... | |
string | TextLoggerIntroText [get, set] |
Gets or sets the introduction string that is written before logging to a TextLogger begins. If this is not specified then the reporter composes its own introduction string, eventually using programname (when defined). More... | |
string | TextLoggerProgramName [get, set] |
String denoting the name of the program or other entity that uses the Reporter for logging. When introtext is not specified, this name is used in the introduction text composed by the reporter. More... | |
bool | TextLoggerWriteIntro [get, set] |
Specifies whether introduction text is written before logging of messages begins or not. More... | |
![]() | |
bool | UseTrace [get, set] |
Private Member Functions | |
~ReporterBase () | |
void | SyncLevels () |
int | FindTW (List< TWClass > lwriters, TextWriter writer) |
Returns the first object on the list that contains a specific TextWriter. More... | |
int | FindTW (List< TWClass > lwriters, Stream stream) |
Returns the first object on the list whose TextWriter has been created from the specific Stream. More... | |
int | FindTW (List< TWClass > lwriters, string filename) |
Returns the first object on the list whose TextWriter has been created from a file with the specific name. More... | |
Static Private Member Functions | |
static void | Test () |
Private Attributes | |
bool | isDisposed = false |
bool | dispLocked = false |
List< String > | readconf = null |
bool | _AppSettingsWarnings = true |
const string | KeyLevelOff = "LevelOff" |
const string | KeyReportingLevel = "ReportingLevel" |
const string | KeyLoggingLevel = "LoggingLevel" |
const string | KeyTracingLevel = "TracingLevel" |
const string | KeyUseTextWriter = "UseTextWriter" |
const string | KeyUseTextLogger = "UseTextLogger" |
const string | KeyUseTrace = "UseTrace" |
const string | KeyTextWriterAppend = "TextWriterAppend" |
const string | KeyTextWriterFile = "TextWriterFile" |
const string | KeyTextWriterFile1 = "TextWriterFile1" |
const string | KeyTextWriterWriteIntro = "TextWriterWriteIntro" |
const string | KeyTextWriterProgramName = "TextWriterProgramName" |
const string | KeyTextWriterIntroText = "TextWriterIntroText" |
const string | KeyTextLoggerAppend = "TextLoggerAppend" |
const string | KeyTextLoggerFile = "TextLoggerFile" |
const string | KeyTextLoggerFile1 = "TextLoggerFile1" |
const string | KeyTextLoggerWriteIntro = "TextLoggerWriteIntro" |
const string | KeyTextLoggerProgramName = "TextLoggerProgramName" |
const string | KeyTextLoggerIntroText = "TextLoggerIntroText" |
const string | KeyTextLoggerIndentInitial = "TextLoggerIndentInitial" |
const string | KeyTextLoggerIndentSpacing = "TextLoggerIndentSpacing" |
const string | KeyTextLoggerIndentCharacter = "TextLoggerIndentCharacter" |
const string | KeyAppSettingsWarnings = "AppSettingsWarnings" |
bool | TextWriterAppend = false |
bool | TextLoggerAppend = false |
bool | _IsGlobal = false |
int | _Depth = 0 |
int | _IndentSpacing = 2 |
int | _InitialIndent =0 |
char | _IndentCharacter = ' ' |
const ReportLevel | DefaultReportingLevel = ReportLevel.Warning |
const ReportLevel | DefaultLoggingLevel = ReportLevel.Warning |
const ReportLevel | DefaultTracingLevel = ReportLevel.Info |
ReportLevel | _ReportingLevel = DefaultReportingLevel |
ReportLevel | _LoggingLevel = DefaultLoggingLevel |
ReportLevel | _TracingLevel = DefaultTracingLevel |
bool | _TreatError |
TraceSwitch | _LoggingSwitch = null |
TraceSwitch | _TracingSwitch = null |
bool | _ThrowTestException = false |
object | _obj = null |
bool | _UseTextWriter = true |
bool | _TextWriterFlushing = false |
TextWriter | Writer = null |
bool | DisposeWriter = false |
List< TWClass > | Writers = new List<TWClass>() |
string | _TextWriterIntroText = null |
string | _TextWriterProgramName = null |
bool | _TextWriterWriteIntro = true |
bool | _UseTextLogger = false |
bool | _TextLoggerFlushing = true |
TextWriter | Logger = null |
bool | DisposeLogger = false |
List< TWClass > | Loggers = new List<TWClass>() |
string | _TextLoggerIntroText = null |
string | _TextLoggerProgramName = null |
bool | _TextLoggerWriteIntro = true |
bool | _UseTrace = false |
Static Private Attributes | |
static ReporterBase | _Global = null |
static bool | _GlobalInitialized = false |
static object | GlobalLock = new object() |
static int | numErrIndentLevel = 0 |
static int | maxErrIndentLevel = 3 |
static int | numErrInitialIndent = 0 |
static int | maxErrInitialIndent = 3 |
static int | numErrIndentSpacing = 0 |
static int | maxErrIndentSpacing = 3 |
static string | _newLineReplacement = " ... " |
Base IGlib class for reporting, tracing and logging; provides a global reporter and a basis for creation of local reporters. This class is identical to the IGLib class (copied directly). IN EFA, refer to the derived class Reporter!
|
inline |
Constructor. Initializes all error reporting delegates to default values and sets auxliary object to null. Auxiliary object Obj is set to null.
|
inline |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates that are not specified are set to default values.
obj | Auxiliary object that will be passed to error reporting delegates when called in local methods. |
reportdelegate | Delegates that is called to launc an error report. Methods of this class will pass to this class the auxiliary object, location strings assembled by the location assembling delegate, and error message string assembled by the error message delegate. |
locationdelegate | Delegate that is called to assemble the error location string. The Auxiliary object this.Obj will be internally passed to this delegate any time it is called. |
messagedelegate | Delegate that is called to assemble the error message (without decorations). The Auxiliary object this.Obj will be internally passed to this delegate any time it is called. |
reservereportdelegate | Delegate that is called to report exceptions that occur within error reporting methods. In particular, this must ne as bullet proof as possible. |
|
inline |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates that are not specified are set to default values.
|
inline |
Constructor. Initializes the error reporter by the specified auxiliary object and the delegate to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates for assembling the error location string and error message string are set to their default values, which are adapted to console-like eror reporting systems.
|
inline |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates for assembling the error locatin and error message string are set to their default values, which are adapted to console-like eror reporting systems.
obj | Auxiliary object that will be passed to error reporting delegates when called in local methods. |
reportdelegate | Delegates that is called to launc an error report. Methods of this class will pass to this class the auxiliary object, location strings assembled by the location assembling delegate, and error message string assembled by the error message delegate. |
reservereportdelegate | Delegate that is called to report exceptions that occur within error reporting methods. In particular, this must ne as bullet proof as possible. |
|
inlineprivate |
|
inlineprotectedvirtual |
Sets the error reporting delegate to the default value.
Reimplemented in IG.Lib.ReporterConsole, and IG.Forms.ReporterForms.
|
inlineprotectedvirtual |
Sets the error location assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.)
Reimplemented in IG.Lib.ReporterConsole, and IG.Forms.ReporterForms.
References IG.Lib.ReportLocationDelegate().
|
inlineprotectedvirtual |
Sets the error message assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.)
Reimplemented in IG.Lib.ReporterConsole, and IG.Forms.ReporterForms.
References IG.Lib.ReportMessageDelegate().
|
inlineprotectedvirtual |
Sets the reserve error reporting delegate to the default value.
Reimplemented in IG.Lib.ReporterConsole, and IG.Forms.ReporterForms.
|
inlineprotectedvirtual |
Initial part of initialization. Auxiliary object is not affected because default delegates do not utilize it.
Reimplemented in IG.Forms.ReporterMsgbox, IG.Lib.ReporterConsoleMsgboxSpeech, IG.Forms.ReporterConsoleMsgbox, and IG.Lib.ReporterConsole.
|
inlineprotectedvirtual |
Finalizing part of initialization. Auxiliary object is not affected because default delegates do not utilize it.
Reimplemented in IG.Forms.ReporterMsgbox, IG.Lib.ReporterConsoleMsgboxSpeech, IG.Forms.ReporterConsoleMsgbox, and IG.Lib.ReporterConsole.
|
inline |
Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates that are not specified are set to default values.
obj | Auxiliary object that will be passed to error reporting delegates when called in local methods. |
reportdelegate | Delegates that is called to launc an error report. Methods of this class will pass to this class the auxiliary object, location strings assembled by the location assembling delegate, and error message string assembled by the error message delegate. |
locationdelegate | Delegate that is called to assemble the error location string. The Auxiliary object this.Obj will be internally passed to this delegate any time it is called. |
messagedelegate | Delegate that is called to assemble the error message (without decorations). The Auxiliary object this.Obj will be internally passed to this delegate any time it is called. |
reservereportdelegate | Delegate that is called to report exceptions that occur within error reporting methods. In particular, this must ne as bullet proof as possible. |
Implements IG.Lib.IReporterBase.
|
inline |
Initializes all error reporting delegates to default values and sets auxliary object to null. Auxiliary object Obj is set to null.
Implements IG.Lib.IReporterBase.
|
inline |
Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates that are not specified are set to default values.
Implements IG.Lib.IReporterBase.
|
inline |
Initializes the error reporter by the specified auxiliary object and the delegate to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates for assembling the error location string and error message string are set to their default values, which are adapted to console-like eror reporting systems.
Implements IG.Lib.IReporterBase.
|
inline |
Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates for assembling the error locatin and error message string are set to their default values, which are adapted to console-like eror reporting systems.
obj | Auxiliary object that will be passed to error reporting delegates when called in local methods. |
reportdelegate | Delegates that is called to launc an error report. Methods of this class will pass to this class the auxiliary object, location strings assembled by the location assembling delegate, and error message string assembled by the error message delegate. |
reservereportdelegate | Delegate that is called to report exceptions that occur within error reporting methods. In particular, this must ne as bullet proof as possible. |
Implements IG.Lib.IReporterBase.
|
inline |
|
inlineprotectedvirtual |
|
inlinestatic |
Takes an existing exception and returns a modified exception based on it.
ex | Exception whose revised version is created. |
messageaddition | String that is prepended to the old message (when keepmessage is true) or forms the new message of the exception (when keepmessage is false) |
newtype | The type of the new exception. Applies when sametype is false and the specified type is valid, i.e. represents Exception or a derived type. Also applies when ex is null and the specified type is valid. |
sametype | If true then the an exception of the same type as the original one is created. |
keepmessage | If true then the original message is contained in the revised exception (it is simply appended to messageaddition ) |
oldasinner | If true then the original exception is included as inner exception. |
|
inlinestatic |
Takes an existing exception and returns a modified exception based on it. The returned exception is of the same type as the original one. Original message is appended to messageaddition . The created exception does not have an inner exception.
ex | Exception whose revised version is created. |
messageaddition | String that is prepended to the old message. |
|
inlinestatic |
Takes an existing exception and returns a modified exception based on it. The returned exception is of the same type as the original one. The created exception does not have an inner exception.
ex | Exception whose revised version is created. |
messageaddition | String that is prepended to the old message (when keepmessage is true) or forms the new message of the exception (when keepmessage is false) |
keepmessage | If false then the original message is not kept. |
|
inlinestatic |
Takes an existing exception and returns a modified exception based on it. The returned exception is of the same type as the original one.
ex | Exception whose revised version is created. |
messageaddition | String that is prepended to the old message (when keepmessage is true) or forms the new message of the exception (when keepmessage is false) |
keepmessage | If false then the original message is not kept. |
oldasinner | If true then the original original exception becomes the inner exception of the returned one. |
|
inlinestatic |
Takes an existing exception and returns a modified exception based on it. Original message is appended to messageaddition . The created exception does not have an inner exception.
ex | Exception whose revised version is created. |
messageaddition | String that is prepended to the old message (when keepmessage is true) or forms the new message of the exception (when keepmessage is false) |
newtype | Type of the returned exception. If the parameter is null then the type will be Exception. |
|
inlinestatic |
Takes an existing exception and returns a modified exception based on it. The created exception does not have an inner exception.
ex | Exception whose revised version is created. |
messageaddition | String that is prepended to the old message (when keepmessage is true) or forms the new message of the exception (when keepmessage is false) |
newtype | Type of the returned exception. If the parameter is null then the type will be Exception. |
keepmessage | If false then the original message is not kept. |
|
inlinestatic |
Takes an existing exception and returns a modified exception based on it.
ex | Exception whose revised version is created. |
messageaddition | String that is prepended to the old message (when keepmessage is true) or forms the new message of the exception (when keepmessage is false) |
newtype | Type of the returned exception. If the parameter is null then the type will be Exception. |
keepmessage | If false then the original message is not kept. |
oldasinner | If true then the original original exception becomes the inner exception of the returned one. |
|
inlinestatic |
Reads a string value from the application configuration file (e.g. app.config) and assigns it to the specified variable.
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
|
inlinestatic |
Reads a character value from the application configuration file and assigns it to the specified variable.
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
T:System.FormatException | Thrown when value is not in the right format. |
|
inlinestatic |
Reads a list of characters from the application configuration file and assigns it to the specified variable.
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
T:System.FormatException | Thrown when value is not in the right format. |
|
inlinestatic |
Reads an integer value from the application configuration file and assigns it to the specified variable.
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
T:System.FormatException | Thrown when value is not in the right format. |
T:System.OverFlowException |
|
inlinestatic |
Reads a floating point value from the application configuration file and assigns it to the specified variable.
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
T:System.FormatException | Thrown when value is not in the right format. |
T:System.OverFlowException |
|
inlinestatic |
Reads a boolean value from the application configuration file and assigns it to the specified variable. Numerical representation is allowed (0 for false, non-zero for true)
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
T:System.FormatException | Thrown when value is not in the right format. |
|
inlinestatic |
Reads a boolean value from the application configuration file and assigns it to the specified variable.
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
otherformatsallowed | If true then boolean type can be specified as number - 0 for false and non-zero for true. |
T:System.FormatException | Thrown when value is not in the right format. |
|
inlinestatic |
Reads an integer value from the application configuration file and assigns it to the specified variable.
key | Key in the application configuration file. |
value | Reference to the variable to which the read-in value is assigned. |
assigned | Output parameter that indicates whether the value has been assigned or not. |
|
inlinestaticprotected |
Returns a full keyroot of a specific configuration item with a reporter name specified.
groupname | User - defined name of a reporter where settings are set. If null then the key will apply to all reporters. |
keyroot | Reduced keyroot name (without decorations). |
|
inlineprotected |
Reads a string value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter.
groupname | A name that makes possible to apply different groups of settings to different reporters. |
keyroot | Agreed name of the parameter to be assigned. |
value | Reference to the variable to which the read-in value is assigned in the case that it is defined. If the given key is not defined in the configuration file then the variable is not affected. |
assigned | Output parameter, tells whether the value has been assigned. |
|
inlineprotected |
Reads a character value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter.
groupname | A name that makes possible to apply different groups of settings to different reporters. |
keyroot | Agreed name of the parameter to be assigned. |
value | Reference to the variable to which the read-in value is assigned in the case that it is defined. If the given key is not defined in the configuration file then the variable is not affected. |
assigned | Output parameter, tells whether the value has been assigned. |
|
inlineprotected |
Reads a list of characters from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter.
groupname | A name that makes possible to apply different groups of settings to different reporters. |
keyroot | Agreed name of the parameter to be assigned. |
value | Reference to the variable to which the read-in value is assigned in the case that it is defined. If the given key is not defined in the configuration file then the variable is not affected. |
assigned | Output parameter, tells whether the value has been assigned. |
|
inlineprotected |
Reads an integer value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter.
groupname | A name that makes possible to apply different groups of settings to different reporters. |
keyroot | Agreed name of the parameter to be assigned. |
value | Reference to the variable to which the read-in value is assigned in the case that it is defined. If the given key is not defined in the configuration file then the variable is not affected. |
assigned | Output parameter, tells whether the value has been assigned. |
|
inlineprotected |
Reads a numeric value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter.
groupname | A name that makes possible to apply different groups of settings to different reporters. |
keyroot | Agreed name of the parameter to be assigned. |
value | Reference to the variable to which the read-in value is assigned in the case that it is defined. If the given key is not defined in the configuration file then the variable is not affected. |
assigned | Output parameter, tells whether the value has been assigned. |
|
inlineprotected |
Reads a boolean value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter.
groupname | A name that makes possible to apply different groups of settings to different reporters. |
keyroot | Agreed name of the parameter to be assigned. |
value | Reference to the variable to which the read-in value is assigned in the case that it is defined. If the given key is not defined in the configuration file then the variable is not affected. |
assigned | Output parameter, tells whether the value has been assigned. |
|
inlineprotected |
Reads a ReportLevel enumeration value from the application configuration file (e.g. app.config) and assigns it to the specified parameter of the reporter.
groupname | A name that makes possible to apply different groups of settings to different reporters. |
keyroot | Agreed name of the parameter to be assigned. |
value | Reference to the variable to which the read-in value is assigned in the case that it is defined. If the given key is not defined in the configuration file then the variable is not affected. |
assigned | Output parameter, tells whether the value has been assigned. |
|
inline |
Returns a flag that tells whether configuration settings with a given group name have already been read for this reporter.
groupname | Name of the settings group, null and "" are treated teh same (denoting the genraal group). |
Implements IG.Lib.IReporterBase.
|
inline |
Returns a flag that tells whether general configuration settings (not belonging to any group) have already been read for this reporter.
Implements IG.Lib.IReporterBase.
|
inlineprotected |
Launches an internal warning that the configuration settings belonging tot he specified group have already been read for this reporter. The warning is launched only if the settings have actually been read and if warnings of this type are switched on.
groupname | Name of the settings group. |
|
inlineprotected |
Marks a specified group of settings as been read for the current reporter.
groupname | Name of the settings group, null and "" are treated teh same (denoting the genraal group). |
|
inlineprotectedvirtual |
Reads settings for a specified named group of reporters from the application configuration file. In the derived classes, this method should be overridden by the method that calls the base class' method.
groupname | Name of the group of reporters for which the settings apply. |
Locking and try blocks are not needed in this method because they appear in the calling methods.
Reimplemented in IG.Forms.ReporterMsgbox, IG.Lib.ReporterConsole, IG.Forms.ReporterConsoleMsgbox_Base, and IG.Lib.ReporterConsoleMsgboxSpeech_Base.
|
inline |
Reads settings for a specified named group of reporters from the application configuration file.
groupname | Name of the group of reporters for which the settings apply. |
onlyonce | If true then settings belonging to the specified group are read only once. |
Implements IG.Lib.IReporterBase.
Referenced by IG.Forms.ReportMsg_Examples.ExAppSettings().
|
inline |
Reads settings for a specified named group of reporters from the application configuration file.
groupname | Name of the group of reporters for which the settings apply. |
Implements IG.Lib.IReporterBase.
|
inline |
Reads common reporter settings (i.e. settings that are not assigned for any named group) from the application configuration file.
Implements IG.Lib.IReporterBase.
|
inline |
Increases indentation level by 1.
Implements IG.Lib.IReporterBase.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
inline |
Increases indentation level by the specified number of levels (can be 0 or negative).
numlevels | Number of levels by which indentation is increased. |
Implements IG.Lib.IReporterBase.
|
inline |
Decreases indentation level by 1.
Implements IG.Lib.IReporterBase.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
inline |
Decreases indentation level by the specified number of levels (can be 0 or negative).
numlevels | Number of levels by which indentation is decreased. |
Implements IG.Lib.IReporterBase.
|
inlineprivate |
|
inline |
Resets the various kinds of reporting levels to default values.
Implements IG.Lib.IReporterBase.
|
inlinestatic |
Returns true if the report of a given type will be launched at the given reporting level, and false if not.
reptype | Type of the report for which information is returned. |
replevel | True if reports of the specific type are launched, false if not. |
|
inline |
Returns true if the report of a given type should be shown by user interface (according to ReportingLevel), and false if not.
reptype | Type of the report for which information is returned. |
Implements IG.Lib.IReporterBase.
|
inline |
Returns true if the report of a given type should be logged in log files (according to ReportingLevel), and false if not.
reptype | Type of the report for which information is returned. |
Implements IG.Lib.IReporterBase.
|
inline |
Returns true if the report of a given type should traced (according to ReportingLevel), and false if not.
reptype | Type of the report for which information is returned. |
Implements IG.Lib.IReporterBase.
|
inlinestatic |
Returns the System.Diagnostics.EventLogEntryType value corresponding to the given ReportType. Remark: FailureAudit and SuccessAudit can not be generated because they don't have representation in ReportType.
level | ReportType value to be converted. |
|
inlinestatic |
Returns the ReportType value corresponding to the given System.Diagnostics.EventLogEntryType. Remark: FailureAudit and SuccessAudit do not have representation in ReportType and are mapped to Error and Warning, respectively.
level | EventLogEntryType value to be converted. |
|
inlinestatic |
Returns the System.Diagnostics.TraceLevel value corresponding to the given ReportLevel.
level | ReportLevel value to be converted. |
|
inlinestatic |
Returns the ReportLevel value corresponding to the given System.Diagnostics.TraceLevel.
level | TraceLevel value to be converted. |
|
inlineprotected |
Synchronizes the value of ReportLevel enumeration variable with the state of a TraceSwitch variable. Enumeration is synchronized according to the Level property of the switch.
tswitch | A trace switch that the ReportLevel enumeration variable will be synchronized with. If it is null or it contains a level that can not be represented by the ReportLevel enumeration then nothing happens. |
level | The ReportLevel variable that is synchronized; declared as ref |
|
inlineprotected |
Synchronizes the state of a TraceSwitch object with the value of the ReportLevel enumeration.
level | Value of the ReportLevel enumeration that TraceSwitch will be synchronized with |
tswitch | TraceSwitch taht is synchronized. |
|
inlineprotectedvirtual |
Reportinf of internal reporter errors for the specific reporter class (overridden in derived classes). This method is called for internal error reports when the delegate for this job is not defined.
messagetype | |
location | |
message | |
ex | |
ex1 |
Reimplemented in IG.Forms.ReporterForms, and IG.Forms.ReporterConsoleMsgbox_Base.
|
inlineprotected |
Used to report internal errors of the reporter. Designed to be bullet proof in order to ensure that improper behavior of the reporting system does not remain unnoticed.
messagetype | |
location | |
message | |
ex | |
ex1 |
Referenced by IG.Lib.ReporterBase.TWClass.SetWriter().
|
inlinevirtual |
Basic reporting method (overloaded). Launches an error report, a warning report or other kind of report/message. Supplemental data (such as objects necessary to launch visualize the report or operation flags) are obtained from the class' instance.
messagetype | The type of the report (e.g. Error, Warning, etc.). |
location | User-provided description of error location. |
message | User-provided description of error. |
ex | Exception thrown when error occurred. |
Implements IG.Lib.IReporterBase.
Reimplemented in IG.Forms.ReporterForms, IG.Forms.ReporterConsoleMsgbox_Base, IG.Lib.ReporterConsoleMsgboxSpeech_Base, and IG.Lib.ReporterConsole_Base.
|
inline |
Launches a report. Predominantly for error and warning reports.
messagetype | Level of the message (Error, Warnind, etc.). |
message | User-provided description of error. |
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a report. Predominantly for error and warning reports.
messagetype | Level of the message (Error, Warnind, etc.). |
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
location | User-provided description of error location. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a report. Predominantly for error and warning reports.
messagetype | Level of the message (Error, Warnind, etc.). |
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a report.
messagetype | Level of the message (Error, Warnind, etc.). |
location | User provided description of the location where report was triggered. |
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a report.
messagetype | Level of the message (Error, Warnind, etc.). |
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inline |
Basic error reporting method (overloaded). Supplemental data (such as objects necessary to launch visualize the report or operation flags) are obtained from the class' instance.
location | User-provided description of error location. |
message | User-provided description of error. |
ex | Exception thrown when error occurred. |
Implements IG.Lib.IReporterBase.
Referenced by IG.Forms.ReporterConf.btnFadeBG_Click(), IG.Forms.ReporterConf.btnFadeBGFinal_Click(), IG.Forms.ReporterConf.btnLaunch_Click(), IG.Forms.ReporterConf.CloseBtn_Click(), IG.Forms.ReporterConf.CloseForm(), IG.Forms.ReporterConf.ConsoleForm_Dispose(), IG.Forms.ReporterConf.ConsoleForm_Load(), IG.Forms.ReportMsg_Examples.ExAppSettings(), IG.Forms.ReportMsg_Examples.ExBas5minTutorial(), IG.Forms.ReporterConf.FormThreadFunc(), IG.Forms.ReporterConf.HideBtn_Click(), IG.Forms.ReporterConf.HideForm(), TestSqlXml.Reporter_Test.Main(), IG.Forms.ReporterConf.rbConsoleFormOn_CheckedChanged(), IG.Forms.ReporterConf.rbConsoleOn_CheckedChanged(), IG.Forms.ReporterConf.rbFadingMessageOn_CheckedChanged(), IG.Forms.ReporterConf.rbMessageBoxOn_CheckedChanged(), IG.Forms.ReporterConf.txtFadeBGFinal_BackColorChanged(), IG.Forms.ReporterConf.txtFadingBG_BackColorChanged(), IG.Forms.ReporterConf.txtFadingPortion_TextChanged(), and IG.Forms.ReporterConf.txtFadingShowtime_TextChanged().
|
inline |
Launches an error report.
message | User-provided description of error. |
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
Implements IG.Lib.IReporterBase.
|
inline |
Launches an error report.
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
location | User-provided description of error location. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches an error report. Predominantly for error and warning reports.
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
Implements IG.Lib.IReporterBase.
|
inline |
Launches an error report.
location | User provided description of the location where report was triggered. |
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches an error report.
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inline |
Basic warning reporting method (overloaded). Supplemental data (such as objects necessary to launch visualize the report or operation flags) are obtained from the class' instance.
location | User-provided description of error location. |
message | User-provided description of error. |
ex | Exception thrown when error occurred. |
Implements IG.Lib.IReporterBase.
Referenced by IG.Forms.ReportMsg_Examples.ExBas5minTutorial(), IG.Forms.ReportMsg_Examples.ExTextLogger(), and IG.Forms.ReportMsg_Examples.ExTextWriter().
|
inline |
Launches a warning report.
message | User-provided description of error. |
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a warning report.
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
location | User-provided description of error location. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a warning report. Predominantly for error and warning reports.
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a warning report.
location | User provided description of the location where report was triggered. |
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches a warning report.
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches an info.
ex | Exception that is the cause for launching the report (and from which additional information is extracted). |
Implements IG.Lib.IReporterBase.
Referenced by IG.Forms.ReportMsg_Examples.ExBas5minTutorial(), IG.Forms.ReportMsg_Examples.ExTextLogger(), and IG.Forms.ReportMsg_Examples.ExTextWriter().
|
inline |
Launches an info.
location | User provided description of the location where report was triggered. |
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inline |
Launches an info.
message | User provided message included in the report. |
Implements IG.Lib.IReporterBase.
|
inlineprotectedvirtual |
Writes to a textwriter the introduction text that is usually printed before logging starts.
tw | The TextWriter that the text is written to. |
introtext | Introduction text that is printed (if null then text will be composed); additional newlines are printed. |
programname | Name of the program or other entity that uses the reporter. |
|
inlineprotected |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
tw | Textwriter that is updated. |
disptw | Reference to the dispose flag that is also remembered. |
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a textwriter. |
|
inlineprotected |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument.
tw | Textwriter that is updated. |
disptw | Reference to the dispose flag that is also remembered. |
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a stream. |
|
inline |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
tw | Textwriter that is updated. |
disptw | Reference to the dispose flag that is also remembered. |
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is true when specifying a file name. |
|
inlineprotected |
Adds another TextWriter to which reporting will also be performed.
lwriters | List on which a TextWriter is added. |
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a textwriter. |
References IG.Lib.ReporterBase.TWClass.SetWriter().
|
inlineprotected |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument.
lwriters | List on which a TextWriter is added. |
stream | Stream to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a stream. |
References IG.Lib.ReporterBase.TWClass.SetWriter().
|
inlineprotected |
Creates a TextWriter from a specific file and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
lwriters | List on which a TextWriter is added. |
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is true when specifying a file name. |
References IG.Lib.ReporterBase.TWClass.SetWriter().
|
inlineprivate |
Returns the first object on the list that contains a specific TextWriter.
References IG.Lib.ReporterBase.TWClass.Writer.
|
inlineprivate |
Returns the first object on the list whose TextWriter has been created from the specific Stream.
References IG.Lib.ReporterBase.TWClass.stream.
|
inlineprivate |
Returns the first object on the list whose TextWriter has been created from a file with the specific name.
References IG.Lib.ReporterBase.TWClass.filename.
|
inlineprotected |
Removes the first object from a list that contains the specified TextWriter.
References IG.Lib.ReporterBase.TWClass.ClearWriter().
|
inlineprotected |
Removes the first object from a list whose TextWriter has been created form the specified stream.
References IG.Lib.ReporterBase.TWClass.ClearWriter().
|
inlineprotected |
Removes the first object from a list whose TextWriter has been created form the file with the specified name.
References IG.Lib.ReporterBase.TWClass.ClearWriter().
|
inlineprotectedvirtual |
Writes to a textwriter the introduction text that is usually printed before logging starts.
tw | The TextWriter that the text is written to. |
Referenced by IG.Lib.ReporterBase.TWClass.SetWriter().
|
inline |
Sets the text writer to which reporting is also performed.
writer | Textwriter to which reporting will be performed. |
Implements IG.Lib.IReporterTextWriter.
Referenced by IG.Forms.ReportMsg_Examples.ExTextWriter().
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a textwriter. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter upon the stream and sets it as the text writer to which reporting is also performed.
writer | Stream to which reporting will be performed. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a stream. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed. The file is overwritten.
filename | Name of the file to which reporting will be performed. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed, where the caller specifies either to overwrite the file or to append to it.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is true when specifying a file name. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Sets the text writer to which reporting is also performed.
writer | Textwriter to which reporting will be performed. |
Implements IG.Lib.IReporterTextWriter.
Referenced by IG.Forms.ReportMsg_Examples.ExTextWriter().
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a textwriter. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed.
writer | Stream to which reporting will be performed. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a stream. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter from the file name and adds it to the list of TextWriters on which reporting is also performed. The file is overwritten.
filename | Name of the file to which reporting will be performed. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies either to overwrite the file or to append to it.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is true when specifying a file name. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Removes all text writers from the TextWriter subsystem. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextWriter.
References IG.Lib.ReporterBase.TWClass.ClearWriter().
|
inline |
Removes the default text writer from the TextWriter subsystem. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextWriter.
Referenced by IG.Forms.ReportMsg_Examples.ExTextWriter().
|
inline |
Removes the first object from Writers that contains the specified TextWriter. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextWriter.
|
inline |
Removes the first object from Writers whose TextWriter has been created form the specified stream. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextWriter.
|
inline |
Removes the first object from Writers whose TextWriter has been created form the file with the specified name. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextWriter.
|
inline |
Returns a list of all text writers that are currently used by the reporter's text writer. Only text writers that are actually writable are included.
Implements IG.Lib.IReporterTextWriter.
|
inline |
Returns a list of all text writers that are currently used by the reporter's text writer. Warning: Beware of thread safety issues! Blocks of code where the returned list is used should be enclosed in lock(reporter.lockobj){...} block (where reporter is the object through which this method was called).
writableonly | If true then only those text writers are listed that are actually writable. If false then all text writers are listed. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Returns the current number of text writers used by the reporter's text logging module. Only text writers that are actually writable are counted.
Implements IG.Lib.IReporterTextWriter.
|
inline |
Returns the current number of TextWriters used by the reporter's text logging module.
writableonly | If true then only those text writers are counted that are actually writable. If false then all text writers are returned. |
Implements IG.Lib.IReporterTextWriter.
|
inline |
Flushes all text writers of the Writer's TextWriter subsystem.
Implements IG.Lib.IReporterTextWriter.
Referenced by IG.Forms.ReportMsg_Examples.ExTextWriter().
|
inline |
Writes a string to all text writers of the Writer's TextWriter subsystem.
str | String to be written. |
Implements IG.Lib.IReporterTextWriter.
Referenced by IG.Forms.ReporterConsoleMsgbox_Base.DefaultReserveReportError(), and IG.Lib.ReporterBase.DefaultReserveReportError().
|
inline |
Similar to TextWriterWrite(), except that a newline is added at the end of the string.
Implements IG.Lib.IReporterTextWriter.
Referenced by IG.Lib.ReporterBase.DefaultReport_TextWriter().
|
inlinestaticprotected |
Default delegate for launching reports (actually logging reports) via text writer.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
location | Short string desctribing location where report was triggered. |
message | Message of the report. |
References IG.Lib.ReporterBase.TextWriterWriteLine().
|
inlinestaticprotected |
Delegate for assembling a location string for this kind of report.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
location | User provided location string. |
ex | Exception that triggered reporting. |
|
inlinestaticprotected |
Delegate for assembling a report message for this kind of report.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
basicmessage | User provided message string. |
ex | Exception that triggered reporting. |
|
inlineprotectedvirtual |
Launches a report via text writers. Report is launched by using special delegates for this kind of reporting. If the corresponding delegates for error location and message are not specified then general delegates are used for this purporse, or location and message string are simple assembled by this function.
messagetype | Type of the report(Error, Warning, Info...). |
location | User provided location string. |
message | User provided message string. |
ex | Exception that triggered reporting. |
|
inlineprotectedvirtual |
Writes to a textwriter the introduction text that is usually printed before logging starts.
tw | The TextWriter that the text is written to. |
|
inline |
Sets the text writer to which reporting is also performed.
writer | Textwriter to which reporting will be performed. |
Implements IG.Lib.IReporterTextLogger.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a textwriter. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter upon the stream and sets it as the text writer to which reporting is also performed.
stream | Stream to which reporting will be performed. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument.
stream | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter upon the stream and sets it as the basic TextWriter to which reporting is performed. Overrides the writeintro property by the 'writeintro' argument.
stream | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a stream. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed. The file is overwritten.
filename | Name of the file to which reporting will be performed. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter upon a file and sets it as the basic TextWriter to which reporting is also performed, where the caller specifies either to overwrite the file or to append to it.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter upon a file and sets it as the text writer to which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is true when specifying a file name. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Sets the text writer to which reporting is also performed.
writer | Textwriter to which reporting will be performed. |
Implements IG.Lib.IReporterTextLogger.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Sets the basic text writer to which reporting is performed, but overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a textwriter. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed.
stream | Stream to which reporting will be performed. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument.
writer | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. Overrides the writeintro property by the 'writeintro' argument.
stream | Textwriter to which reporting will be performed. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is false when specifying a stream. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter from the file name and adds it to the list of TextWriters on which reporting is also performed. The file is overwritten.
filename | Name of the file to which reporting will be performed. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies either to overwrite the file or to append to it.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Creates a TextWriter from the stream and adds it to the list of TextWriters on which reporting is also performed. The caller specifies whether to overwrite the file or to append to it, and whether the introductory text is written before reporting to the file begins.
filename | Name of the file to which reporting will be performed. |
append | If false then eventual existing contents of the file are overwritten. Otherwise, new text is appended at the end of the file. |
writeintro | Overrides the class' writeintro property (if true then introductory text is printed, regardless of the value of the property). If the introductory text is printed then the standard method is used, taking into account the introtext and programname properties. |
disposewriter | Indicates whether the TextWriter should be disposed when not used any more. Default is true when specifying a file name. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Removes all text writers from the TextLogger subsystem. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextLogger.
References IG.Lib.ReporterBase.TWClass.ClearWriter().
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
inline |
Removes the default text writer from the TextLogger subsystem. If appropriate, the corresponding txt writer is closed.
Implements IG.Lib.IReporterTextLogger.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
inline |
Removes the first object from Loggers that contains the specified TextWriter. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextLogger.
|
inline |
Removes the first object from Loggers whose TextWriter has been created form the specified stream. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextLogger.
|
inline |
Removes the first object from Loggers whose TextWriter has been created form the file with the specified name. If appropriate, the corresponding text writer is closed.
Implements IG.Lib.IReporterTextLogger.
|
inline |
Returns a list of all text writers that are currently used by the reporter's text logger. Only text writers that are actually writable are included.
Implements IG.Lib.IReporterTextLogger.
|
inline |
Returns a list of all text writers that are currently used by the reporter's text logger. Warning: Beware of thread safety issues! Blocks of code where the returned list is used should be enclosed in lock(reporter.lockobj){...} block (where reporter is the object through which this method was called).
writableonly | If true then only those text writers are listed that are actually writable. If false then all text writers are listed. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Returns the current number of text writers used by the reporter's text logging module. Only text writers that are actually writable are counted.
Implements IG.Lib.IReporterTextLogger.
|
inline |
Returns the current number of TextWriters used by the reporter's text logging module.
writableonly | If true then only those text writers are counted that are actually writable. If false then all text writers are returned. |
Implements IG.Lib.IReporterTextLogger.
|
inline |
Flushes all text writers of the Writer's TextLogger subsystem.
Implements IG.Lib.IReporterTextLogger.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
inline |
Writes a string to all text writers of the Writer's TextLogger subsystem.
str | String to be written. |
Implements IG.Lib.IReporterTextLogger.
Referenced by IG.Forms.ReporterConsoleMsgbox_Base.DefaultReserveReportError(), and IG.Lib.ReporterBase.DefaultReserveReportError().
|
inline |
Similar to TextLoggerWrite(), except that a newline is added at the end of the string.
Implements IG.Lib.IReporterTextLogger.
Referenced by IG.Lib.ReporterBase.DefaultReport_TextLogger().
|
inlinestatic |
Formats a one-line message for tracing output.
depth | Indentation level. |
initialindent | Initial indentation. |
indentincrement | Indentation spacing. |
indentchar | Indentation character. |
type | Type of the message. |
location | String denoting location of the message. |
message | Message to be output. |
source | Indication of message source. |
|
inlinestaticprotected |
Default delegate for launching reports (actually logging reports) via text writer.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
location | Short string desctribing location where report was triggered. |
message | Message of the report. |
References IG.Lib.ReporterBase.Depth, IG.Lib.ReporterBase.MsgSource, IG.Lib.ReporterBase.TextLoggerIndentCharacter, IG.Lib.ReporterBase.TextLoggerIndentInitial, IG.Lib.ReporterBase.TextLoggerIndentSpacing, and IG.Lib.ReporterBase.TextLoggerWriteLine().
|
inlinestaticprotected |
Delegate for assembling a location string for this kind of report.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
location | User provided location string. |
ex | Exception that triggered reporting. |
|
inlinestaticprotected |
Delegate for assembling a report message for this kind of report.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
basicmessage | User provided message string. |
ex | Exception that triggered reporting. |
|
inlineprotectedvirtual |
Launches a report via text logger. Report is launched by using special delegates for this kind of reporting. If the corresponding delegates for error location and message are not specified then general delegates are used for this purporse, or location and message string are simple assembled by this function.
messagetype | Type of the report(Error, Warning, Info...). |
location | User provided location string. |
message | User provided message string. |
ex | Exception that triggered reporting. |
|
inlinestatic |
Formats a one-line message for tracing output.
depth | Indentation level. |
indentincrement | Indentation spacing. |
indentchar | Indentation character. |
type | Type of the message. |
location | String denoting location of the message. |
message | Message to be output. |
source | Indication of message source. |
|
inlinestaticprotected |
Delegat for launching a report via Trace.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
location | Short string desctribing location where report was triggered. |
message | Message of the report. |
References IG.Lib.ReporterBase.Depth, IG.Lib.ReporterBase.MsgSource, IG.Lib.ReporterBase.TextLoggerIndentCharacter, IG.Lib.ReporterBase.TextLoggerIndentInitial, and IG.Lib.ReporterBase.TextLoggerIndentSpacing.
|
inlinestaticprotected |
Delegate for assembling a location string for this kind of report.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
location | User provided location string. |
ex | Exception that triggered reporting. |
|
inlinestaticprotected |
Delegate for assembling a report message for this kind of report.
reporter | Reporter object where additional information can be found. |
messagetype | Type of the report(Error, Warning, Info...). |
basicmessage | User provided message string. |
ex | Exception that triggered reporting. |
|
inlineprotectedvirtual |
Launches a report via Trace. Report is launched by using special delegates for this kind of reporting. If the corresponding delegates for error location and message are not specified then general delegates are used for this purporse, or location and message string are simple assembled by this function.
messagetype | Type of the report(Error, Warning, Info...). |
location | User provided location string. |
message | User provided message string. |
ex | Exception that triggered reporting. |
|
inlinestatic |
Auxiliary method that composes the complete message, including decoration, for reports launched in a message box.
reporter | Reporter object used for reporting. |
messagetype | Level of the message that is reported (Error, Warning, ...) |
errorlocation | User description of location that caused the report. |
errormessage | User defined message. |
|
inlinestatic |
Auxiliary method that composes the complete message, including decoration, for reports launched in consoles.
reporter | Reporter object used for reporting. |
messagetype | Level of the message that is reported (Error, Warning, ...) |
errorlocation | User description of location that caused the report. |
errormessage | User defined message. |
|
inlinestatic |
Auxiliary method that composes the complete message, including decoration with a TIMESTAMP, for reports launched in consoles.
reporter | Reporter object used for reporting. |
messagetype | Level of the message that is reported (Error, Warning, ...) |
errorlocation | User description of location that caused the report. |
errormessage | User defined message. |
Referenced by IG.Forms.ConsoleForm.ReportErrorBas().
|
inlinestatic |
Base method for DefaultReportStringConsole and DefaultReportStringConsoleTimeStamp.
reporter | Reporter object used for reporting. |
messagetype | Level of the message that is reported (Error, Warning, ...) |
errorlocation | User description of location that caused the report. |
errormessage | User defined message. |
timestamp | Specifies whether to include a time stamp in the message. |
|
inlinestatic |
Default delegate for reporting. For parameter descriptions, see ReportDlg.
|
inlinestatic |
Default delegate for assembly of the location string when reporting on consoles. For parameter descriptions, see ReportMessageDlg.
|
inlinestatic |
Default delegate for message assembly of the message string when reporting on consoles. For parameter descriptions, see ReportMessageDlg.
|
inlinestatic |
Default function function for assembling reserve error reporting message. This is put outside the DefaultReserveReportError() method such that the same assembly method can be used in different systems. The method is considered bulletproof.
messagetype | Level of the message (Error, Warning,Info, etc.) |
location | Location string as passed to the error reporting function that has thrown an exception. |
message | Error message string as passed to the error reporting function that has thrown an exception. |
ex | Original exception that was being reported when the error reporting function threw an exception. |
ex1 | Exception thrown by the error reporting function. |
|
inlinestatic |
Default function function for reserve error reporting (called if an exception is thrown in a reporting function). Writes a report to the application's standard console (if defined) and Reporter's text writers and loggers (when defined). Writing is unconditional (e.g., even if reporter.UseTextWriter = false or reporter.ReportingLevel = Off, a message is written to the TextWriter's output streams).
reporter | Reporter object whre the method can get additional information. |
messagetype | Level of the message (Error, Warning,Info, etc.) |
location | Location string as passed to the error reporting function that has thrown an exception. |
message | Error message string as passed to the error reporting function that has thrown an exception. |
ex | Original exception that was being reported when the error reporting function threw an exception. |
ex1 | Exception thrown by the error reporting function. |
References IG.Lib.ReporterBase.TextLoggerWrite(), and IG.Lib.ReporterBase.TextWriterWrite().
|
inlinestatic |
Returns location string derived from ex, which includes information about the location where error occurred, specified by the source file name, function and line and column numbers.
ex |
|
inlinestatic |
Returns Error location string derived from ex, which includes information about location of error occurrence and is prepended by additional location information (such as class name)
location | |
ex |
|
inlinestaticprivate |
ReportDelegate IG.Lib.ReporterBase.ReportDlg = null |
Delegate that performs error reporting. It calls delegates ReportDlg to assemble error location information and ReportMessageDlg to assemble error message. Then it uses both to assemble the final decorated error message and launches it in its own way.
ReportLocationDelegate IG.Lib.ReporterBase.ReportLocationDlg = null |
Delegate that assembles the error location string.
ReportMessageDelegate IG.Lib.ReporterBase.ReportMessageDlg = null |
Delegate that assembles the eror message string.
ReserveReportErrorDelegate IG.Lib.ReporterBase.ReserveReportErrorDlg = null |
Delegate that reports an error when the error reporting function throws an exception. Functions assigned to this delegate should really be BULLETPROOF. If not assigned then the internal method of the corresponding class is called. It is highly recommended to do reporting in small steps enclosed in try/catch blocks and especially to use the error reporting object very carefully (because it may not be initialized properly, which can also be the reason that the error reporting function crashes). It is higly recommended to first call the DefaultReserveReportError() within the function assigned to this delegate, or at least to use the DefaultReserveReportMessage() method for assembly of the message shown.
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Indicates whether a global Reporter (or its derived class) should read settings from the application configuration file when initialized (default is true).
|
protected |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
bool IG.Lib.ReporterBase.DebugMode = false |
Indicates that reporting suitable for debugging mode should be performed. A standard flag that can be used by the delegate functions.
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
ReportDelegate IG.Lib.ReporterBase.ReportDlgTextWriter = new ReportDelegate(DefaultReport_TextWriter) |
Delegate that performs reporting (actually logging) via text writer.
ReportLocationDelegate IG.Lib.ReporterBase.ReportLocationDlgTextWriter = new ReportLocationDelegate(DefaultReportLocation_TextWriter) |
Delegate that assembles the location string for reporting via TextWriter.
ReportMessageDelegate IG.Lib.ReporterBase.ReportMessageDlgTextWriter = new ReportMessageDelegate(DefaultReportMessage_TextWriter) |
Delegate that assembles the message string for reporting via text writer.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
ReportDelegate IG.Lib.ReporterBase.ReportDlgTextLogger = new ReportDelegate(DefaultReport_TextLogger) |
Delegate that performs reporting (actually logging) via text writer.
ReportLocationDelegate IG.Lib.ReporterBase.ReportLocationDlgTextLogger = new ReportLocationDelegate(DefaultReportLocation_TextLogger) |
Delegate that assembles the location string for reporting via text logger.
ReportMessageDelegate IG.Lib.ReporterBase.ReportMessageDlgTextLogger = new ReportMessageDelegate(DefaultReportMessage_TextLogger) |
Delegate that assembles the message string for reporting via text writer.
|
private |
ReportSource IG.Lib.ReporterBase.MsgSource = ReportSource.Unknown |
Indicates the source of the message (such as client, server, web service, etc.)
Referenced by IG.Lib.ReporterBase.DefaultReport_TextLogger(), and IG.Lib.ReporterBase.DefaultReport_Trace().
ReportDelegate IG.Lib.ReporterBase.ReportDlgTrace = new ReportDelegate(DefaultReport_Trace) |
Delegate that performs reporting (logging) via Pado trace mechanism. It calls delegates ReportDlg to assemble error location information and ReportMessageDlg to assemble error message. Then it uses both to assemble the final decorated error message and launches it in its own way.
ReportLocationDelegate IG.Lib.ReporterBase.ReportLocationDlgTrace = new ReportLocationDelegate(DefaultReportLocation_Trace) |
Delegate that assembles the error location string for reporting (logging) via Pado trace mechanism.
ReportMessageDelegate IG.Lib.ReporterBase.ReportMessageDlgTrace = new ReportMessageDelegate(DefaultReportMessage_Trace) |
Delegate that assembles the eror message string for reporting (logging) via Pado trace mechanism.
|
staticprivate |
|
staticget |
Gets the value indicating whether the global reporter of this class has already been initialized.
|
staticgetprivate set |
Gets the global reporter object. This is typically used for configuring the global reporter.
Referenced by IG.Lib.ReporterConfSpeech.SetReporter(), and IG.Forms.ReporterConf.SetReporter().
|
getset |
Gets or sets the flag that specifies whether a warning message is launched when reading of application settings is attempted more than once for the same named group of settings.
|
getprotected set |
Indicates whether the current reporter is used as a global reporter or not.
This flag is set when the global reporter is initialized.
|
getset |
Gets or sets the current indentation level for on-line output. This should normally be done by calling IncreaseDepth() or DecreaseDepth().
Referenced by IG.Lib.ReporterBase.DefaultReport_TextLogger(), and IG.Lib.ReporterBase.DefaultReport_Trace().
|
getset |
Gets or sets number fo initial indentation charactyers.
Referenced by IG.Lib.ReporterBase.DefaultReport_TextLogger(), IG.Lib.ReporterBase.DefaultReport_Trace(), and IG.Forms.ReportMsg_Examples.ExTextLogger().
|
getset |
Gets or sets the number of indentation characters written per indentation level.
Referenced by IG.Lib.ReporterBase.DefaultReport_TextLogger(), IG.Lib.ReporterBase.DefaultReport_Trace(), and IG.Forms.ReportMsg_Examples.ExTextLogger().
|
getset |
Gets or sets the indentation character.
Referenced by IG.Lib.ReporterBase.DefaultReport_TextLogger(), IG.Lib.ReporterBase.DefaultReport_Trace(), and IG.Forms.ReportMsg_Examples.ExTextLogger().
|
getset |
Gets or sets level of output for reporting (console output, message boxes, etc.).
Referenced by IG.Forms.ReportMsg_Examples.ExBas5minTutorial(), IG.Forms.ReportMsg_Examples.ExTextLogger(), and IG.Forms.ReportMsg_Examples.ExTextWriter().
|
getset |
Gets or sets level of output for logging (writing to log files).
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger(), and IG.Forms.ReportMsg_Examples.ExTextWriter().
|
getset |
Gets or sets trace level (for external trace systems).
|
get |
Returns a boolean value indicating whether errors are treated by the reporter in its current state.
|
get |
Returns a boolean value indicating whether warnings are treated by the reporter in its current state.
|
get |
Returns a boolean value indicating whether info messages are treated by the reporter in its current state.
|
get |
Returns a boolean value indicating whether undefined messages with the lowest priority are treated by the reporter in its current state.
|
getset |
Gets the level with the lowesst priority (out of reporting, logging and tracing level), or sets all levels to the assigned level.
|
getset |
Indexer that returns true if messages of a given level are treated by the reporter (either by the reporting, logging or tracing part, according to the corresponding level states), or false if not (i.e. if all the levels are set lover than the index). In the case of assignment, when true is assigned, all levels that are set lower than the are set to index. Assignment with false should be used only exteptionally; but in this case all levels that are set higher or equal than the index are set one level below.
level | Level for which we are interested whether it is treated. |
|
getset |
Gets or sets the TraceSwitch that is synchronized with ReportingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the ReportingLevel, which will override its settings).
|
getset |
Gets or sets the TraceSwitch that is synchronized with LoggingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the LoggingLevel, which will override its settings).
|
getset |
Gets or sets the TraceSwitch that is synchronized with TracingLevel. IMPORTANT: State of the object obtained by get accessor must not be changed unless the object is assigned back by the set accessor. If one wants that this TraceSwitch assumes values specified by the configuration file, a corresponding Traceswitch must be created and assigned to this property (otherwise the TraceSwitch will be synchronized with the TracingLevel, which will override its settings).
|
getset |
If true then the basic reporting function will throw an exception. This is intended predominantly for testing how the reporter behaves in case of internal errors. When the exception is thrown, the value is set back to false. If we want an exception to be thrown again then the value must be set to true once again.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
getset |
Auxiliary object used by the delegates that perform error reporting. The object is used to provide additional information used in error reporting, or to provide objects that perform some actions in error reporting tasks, or both. It is left entirely to error reporting delegates to interpret the object's contents.
Referenced by IG.Forms.ConsoleForm.ReportErrorBas().
|
get |
Object used for locking.
|
getset |
Gets or sets the flag specifying whether reporting using a text writer is performed or not.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger(), and IG.Forms.ReportMsg_Examples.ExTextWriter().
|
getset |
Gets or sets the flag that tells whether or not the text writers are flushed after every message that is reported through them.
Referenced by IG.Forms.ReportMsg_Examples.ExTextWriter().
|
getset |
Gets or sets the introduction string that is written before logging to a TextWriter begins. If this is not specified then the reporter composes its own introduction string, eventually using programname (when defined).
|
getset |
String denoting the name of the program or other entity that uses the Reporter for logging. When introtext is not specified, this name is used in the introduction text composed by the reporter.
|
getset |
Specifies whether introduction text is written before logging of messages begins or not.
|
getset |
Gets or sets the flag specifying whether reporting using a text writer is performed or not.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger(), and IG.Forms.ReportMsg_Examples.ExTextWriter().
|
getset |
Gets or sets the flag that tells whether or not the text writers are flushed after every message that is reported through them.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger().
|
getset |
Gets or sets the introduction string that is written before logging to a TextWriter begins. If this is not specified then the reporter composes its own introduction string, eventually using programname (when defined).
|
getset |
String denoting the name of the program or other entity that uses the Reporter for logging. When introtext is not specified, this name is used in the introduction text composed by the reporter.
|
getset |
Specifies whether introduction text is written before logging of messages begins or not.
|
getset |
Gets or sets the flag specifying whether reporting using the pado trace is performed or not.
Referenced by IG.Forms.ReportMsg_Examples.ExTextLogger(), and IG.Forms.ReportMsg_Examples.ExTextWriter().