public class JCConsoleEventLog extends Object implements IJCEventLog
IJCEventLog that writes all bridge
diagnostic messages to standard output.
Register an instance with JCOBridge.RegisterEventLog(org.mases.jcobridge.IJCEventLog) to redirect
bridge events and fusion log entries to System.out. Useful for
development and debugging; for production use, provide a custom
IJCEventLog implementation that writes to an application logger.
Example:
JCOBridge bridge = JCOBridge.CreateNew(); bridge.RegisterEventLog(new JCConsoleEventLog());
| Constructor and Description |
|---|
JCConsoleEventLog() |
| Modifier and Type | Method and Description |
|---|---|
void |
EventLog(String msg)
Receives a general bridge diagnostic event message and prints it to standard output.
|
void |
FusionLog(String msg)
Receives a CLR assembly fusion log message and prints it to standard output.
|
public void FusionLog(String msg)
FusionLog in interface IJCEventLogmsg - the fusion log message from the CLR assembly resolver.public void EventLog(String msg)
EventLog in interface IJCEventLogmsg - the diagnostic message from the JCOBridge runtime.