Mike1DLogFileWriter Class |
Call Prepare to open the logfile. If prepare is not called, all writing to the logfile is ignored silently.
Namespace: DHI.Mike1D.Mike1DDataAccess
The Mike1DLogFileWriter type exposes the following members.
Name | Description | |
---|---|---|
Mike1DLogFileWriter |
Default constructor, setting the default log file name
|
Name | Description | |
---|---|---|
IncludeExceptionStackTrace |
Flag specifying whether the exception stack trace should be written
to the log file, in case of an exception. The exception message
is always written to the log file.
| |
LogFileName |
Name and full path of log file. By default the name is the setup
name where the extension is replaced by ".log". Another name can
be specified here.
| |
LogFileOpen |
Flag indicating if log file is open and can be written to.
|
Name | Description | |
---|---|---|
AddAdditionalLine |
Add an additional line to the log file. This line is related to
a previous line added by AddLine(DiagnosticsHandlerMessageType, String), and
type of error message and date/time will not be printed.
| |
AddLine |
Add a message line to the log file.
| |
CloseLogFile |
Close the logfile
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExceptionToConsole |
Helper method that writes exception to console out (for command line output)
| |
ExceptionToLogFile |
Prints exception message and stack to log file, including
inner exceptions.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Prepare |
Prepare (open) the log file. Returns false if the log file is already open, i.e.
it can be called multiple times.
| |
ReportMike1DVersionToLogFile | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |