Click or drag to resize

LoggerInstance Method (Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, String, String)

Instances the specified log to file.

Namespace:  Koden.Utils.Logger
Assembly:  Koden.Utils.Logger (in Koden.Utils.Logger.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Logger Instance(
	bool logToFile,
	bool logToScreen = false,
	bool isDebug = false,
	bool isVerbose = false,
	bool appendToDayLog = false,
	bool useJSON = false,
	string logDir = "",
	string logFileName = ""
)

Parameters

logToFile
Type: SystemBoolean
if set to true [log to file].
logToScreen (Optional)
Type: SystemBoolean
if set to true [log to screen].
isDebug (Optional)
Type: SystemBoolean
if set to true [is debug].
isVerbose (Optional)
Type: SystemBoolean
if set to true [is verbose].
appendToDayLog (Optional)
Type: SystemBoolean
if set to true [append to daily log].
useJSON (Optional)
Type: SystemBoolean
if set to true [use json] format for file.
logDir (Optional)
Type: SystemString
The log dir.
logFileName (Optional)
Type: SystemString
Name of the log file.

Return Value

Type: Logger

[Missing <returns> documentation for "M:Koden.Utils.Logger.Logger.Instance(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

Exceptions
ExceptionCondition
ExceptionLogging Directory does not exist: " + logDir
ExceptionLogging Directory does not exist: " + logDir
See Also