org.razvan.jzx
Interface ILogger

All Known Implementing Classes:
AppletLogger, ConsoleLogger

public interface ILogger

Interface implemented by all classes that are able to log messages generated by the emulator.

Author:
Razvan Surdulescu (c) 2001 - 2006
You may use and distribute this software for free provided you include this copyright notice. You may not sell this software, use my name for publicity reasons or modify the code without permission from me.

Field Summary
static int C_DEBUG
          DEBUG channel: all debug messages should go here.
static int C_ERROR
          ERROR channel: all error messages should go here.
 
Method Summary
 void log(int channel, java.lang.String message)
          Log a message to a given channel.
 void log(int channel, java.lang.Throwable t)
          Log an exception to a given channel.
 

Field Detail

C_ERROR

static final int C_ERROR
ERROR channel: all error messages should go here.

An example of an error message is where the snapshot file is corrupt, the ROM files cannot be found etc.

See Also:
Constant Field Values

C_DEBUG

static final int C_DEBUG
DEBUG channel: all debug messages should go here.

An example of a debug message is where functionality that is not implemented is called.

See Also:
Constant Field Values
Method Detail

log

void log(int channel,
         java.lang.String message)
Log a message to a given channel.


log

void log(int channel,
         java.lang.Throwable t)
Log an exception to a given channel.