Sets and opens the file where the log output will go. The specified file must be writable.
Namespace: log4net.AppenderAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- fileName
- Type:
System.String
The path to the log file. Must be a fully qualified path.
- append
- Type:
System.Boolean
If true will append to fileName. Otherwise will truncate fileName
Remarks
Calls OpenFile(String, Boolean) but guarantees not to throw an exception. Errors are passed to the ErrorHandler.
See Also