Mike1DLogFileWriter Class

Log file writer for MIKE 1D engine.

Call Prepare to open the logfile. If prepare is not called, all writing to the logfile is ignored silently.

Definition

Namespace: DHI.Mike1D.Mike1DDataAccess
Assembly: DHI.Mike1D.Mike1DDataAccess (in DHI.Mike1D.Mike1DDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class Mike1DLogFileWriter
Inheritance
Object    Mike1DLogFileWriter

Constructors

Mike1DLogFileWriter Default constructor, setting the default log file name

Properties

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.

Methods

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
EqualsDetermines 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.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates 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 
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also