User-supplied log message handler.
You can provide an instance of this class in order to integrate LibMuse logs into your application's logging system.
- See also
- LogManager
§ receiveLog()
abstract void com.choosemuse.libmuse.LogListener.receiveLog |
( |
LogPacket |
log | ) |
|
|
abstract |
Handler method for log messages. These are sent when interesting events happen. A simple handler may just print each message to stderr or stdout separated by newlines. It's also possible to implement arbitrary log policies within this handler.
- Warning
- receiveLog may be entered concurrently from multiple threads; if your listener implementation requires synchronization, it should provide its own.
-
Your listener should not make any LibMuse API calls; otherwise, unbounded recursion may occur, leading to resource exhaustion.
- Parameters
-
The documentation for this class was generated from the following file: