LoggerSetLogFile Method
Sets the location of the log file and optionally, the log file name.
Namespace: Logging.HelperAssembly: Logging.Helper (in Logging.Helper.dll) Version: 2.0.6
public void SetLogFile(
string logDirectory,
string logFileName = ""
)
Parameters
- logDirectory String
- Location of the log file.
- logFileName String (Optional)
- Name of the log file.
ArgumentException | Thrown when one of the arguments provided to a method is not valid. |
IOException | Thrown when an I/O error occurs. |
NotSupportedException | Thrown 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. |
SecurityException | Thrown when a security error is detected. |