Provides a way to register a call back for logging
Declaration Syntax
C# | Visual Basic | Visual C++ |
public sealed class Logging
Public NotInheritable Class Logging
public ref class Logging sealed
Members
All Members | Constructors | Methods | |||
Icon | Member | Description |
---|---|---|
Logging()()()() | Initializes a new instance of the Logging class | |
DeregisterCallback()()()() |
deregister a callback, the loglevel will not be reset and will continue to be the
the one that was last one.
| |
LogTestMessage(TraceLevel) |
Log a test message at the specified 'level'. Note that this function is intended
for testing of the logging configuration only.
| |
RegisterCallback(Logging..::..Callback, TraceLevel) |
register a callback with the specified 'thresholdLevel' as default threshold level
|
Remarks
The call back is provided as an interface that needs to be implemented. The
method onMessage() is called when a message that needs logging is available.
Callback is only called for messages that have 'level'
higher than or equal to the 'defaultThresholdLevel'.
There can be only one callback that can be registered and if another callback
is registered it will replace the previous one.
Copy | |
---|---|
Logging.Callback cb = new Logging.Callback() { public void onMessage( long threadId, Level level, Datetime dateTime, String loggerName, String message) { // Do some processing } }; Logging.registerCallback(cb, Level.WARNING); |
Inheritance Hierarchy
Object | |
Logging |
Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.9.6.1