LoggerSetLogFile Method

Sets the location of the log file and optionally, the log file name.

Definition

Namespace: Logging.Helper
Assembly: Logging.Helper (in Logging.Helper.dll) Version: 2.0.6
C#
public void SetLogFile(
	string logDirectory,
	string logFileName = ""
)

Parameters

logDirectory  String
Location of the log file.
logFileName  String  (Optional)
Name of the log file.

Exceptions

ArgumentExceptionThrown when one of the arguments provided to a method is not valid.
IOExceptionThrown when an I/O error occurs.
NotSupportedExceptionThrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality.
SecurityExceptionThrown when a security error is detected.

See Also