Jaxer.Log

Static object for writing messages to the log file located at /opt/AptanaJaxer/logs/jaxer.log.

Constructor

Methods of this object are all called statically. So no constructor is necessary. Functions are called with Jaxer.Log.functionName. Log levels are as follows (ordered from low to high).

  • trace
  • debug
  • info
  • warn
  • error
  • fatal

Methods

  • Jaxer.Log.debug(message);
  • <String> message - message to be logged

    null

    Logs a message at the "DEBUG" level. The message will only be appended to the log if the level for that module (and that appender) is set at or below Jaxer.Log.DEBUG. This is the second-most verbose level - instrument your code with debug() calls in those places where debugging is likely to benefit from them.

  • Jaxer.Log.error(message);
  • <String> message - message to be logged

    null

    Logs a message at the "ERROR" level. The message will only be appended to the log if the level for that module (and that appender) is set at or below Jaxer.Log.ERROR. Use this to log non-fatal but nonetheless real errors.

  • Jaxer.Log.fatal(message);
  • <String> message - message to be logged

    null

    Logs a message at the "FATAL" level. The message will only be appended to the log if the level for that module (and that appender) is set at or below Jaxer.Log.FATAL. Use this to log the most serious errors.

  • Jaxer.Log.getLevel();
  • none

    null

    Get the logging level of the generic logger.

  • Jaxer.Log.info(message);
  • <String> message - message to be logged

    null

    Logs a message at the "INFO" level. The message will only be appended to the log if the level for that module (and that appender) is set at or below Jaxer.Log.INFO. By default, modules are set to show messages at this level, so use info() when you want to show log messages without needing to set the level to more verbose than usual, but don't keep info() messages in your code long term.

  • Jaxer.Log.setLevel(level);
  • <String> level - ( "trace", "debug", "info", "warn", "error", "fatal" )

    null

    Set the logging level for the generic logger.

  • Jaxer.Log.trace(message);
  • <String> message - message to be logged

    null

    Logs a message at the "TRACE" level. The message will only be appended to the log if the level for that module (and that appender) is set at Jaxer.Log.TRACE. This is the most verbose level - instrument your code liberally with trace() calls to be able to pinpoint any issues.

  • Jaxer.Log.warn(message);
  • <String> message - message to be logged

    null

    Logs a message at the "WARN" level. The message will only be appended to the log if the level for that module (and that appender) is set at or below Jaxer.Log.WARN. Use this to warn of any unusual or unexpected, but not necessarily erroneous, conditions.