DevLogInitDevLog Method (String, DevLogOptions, Int32, Int32) |
Initilize the log.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void InitDevLog(
string fileName,
DevLogOptions logOptions,
int maxFileSize,
int maxBackupFiles
)
Public Shared Sub InitDevLog (
fileName As String,
logOptions As DevLogOptions,
maxFileSize As Integer,
maxBackupFiles As Integer
)
Parameters
- fileName
- Type: SystemString
The name of the file - logOptions
- Type: NetQuarryDevLogOptions
Behavior options for the log from the DevLogOptions enum.
This value should be a decimal number that represents a mask of one or more
of the DevLogOptions values.
For example, to turn off Debug level logs, set the value to 1.
NoDebug|NoSQL == 5
NoDebug|NoInfo == 3 (note that this turns off SQL and Timing entries as well)
NoDebug|AutoFlush = 33 (0x00000001 | 0x00000020)
AutoFlush == 32 (by default the file is buffered)
Synchronize == 64 (by default the file allows overlapping writes)
- maxFileSize
- Type: SystemInt32
The maximum size of the file.
Remarks The MaxFileSize is in bytes, in decimal format: (1048576 == 1 MB). The default is 10 MB (0x00A00000 or 10,485,760)
- maxBackupFiles
- Type: SystemInt32
The maximum number of files to keep in a rolling backup.
See Also