EmbeddedLogger..::..Initialize Method (LogMethod, LogMethod, LogMethod, LogMethod, Boolean, String)
Initializes EmbeddedLogger with the supplied log methods.
Namespace:
com.onlineobject.objectnet.server.UtilsAssembly: ObjectNetAPI (in ObjectNetAPI.dll)
Syntax
public static void Initialize( EmbeddedLogger..::..LogMethod debugMethod, EmbeddedLogger..::..LogMethod infoMethod, EmbeddedLogger..::..LogMethod warningMethod, EmbeddedLogger..::..LogMethod errorMethod, bool includeTimestamps, string timestampFormat )
Parameters
- debugMethod
- Type: com.onlineobject.objectnet.server.Utils..::..EmbeddedLogger..::..LogMethod
The method to use when logging debug messages. Set to nullNothingnullptra null reference (Nothing in Visual Basic) to disable debug logs.
- infoMethod
- Type: com.onlineobject.objectnet.server.Utils..::..EmbeddedLogger..::..LogMethod
The method to use when logging info messages. Set to nullNothingnullptra null reference (Nothing in Visual Basic) to disable info logs.
- warningMethod
- Type: com.onlineobject.objectnet.server.Utils..::..EmbeddedLogger..::..LogMethod
The method to use when logging warning messages. Set to nullNothingnullptra null reference (Nothing in Visual Basic) to disable warning logs.
- errorMethod
- Type: com.onlineobject.objectnet.server.Utils..::..EmbeddedLogger..::..LogMethod
The method to use when logging error messages. Set to nullNothingnullptra null reference (Nothing in Visual Basic) to disable error logs.
- includeTimestamps
- Type: Boolean
Whether or not to include timestamps when logging messages.
- timestampFormat
- Type: String
The format to use for timestamps.