Java Code Examples for org.apache.velocity.runtime.log.LogChute#DEBUG_ID
The following examples show how to use
org.apache.velocity.runtime.log.LogChute#DEBUG_ID .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VelocitySlf4JLogSystem.java From feeyo-hlsserver with Apache License 2.0 | 6 votes |
@Override public void log(int level, String message, Throwable t) { switch (level) { case LogChute.WARN_ID: LOGGER.warn(message, t); break; case LogChute.INFO_ID: LOGGER.info(message, t); break; case LogChute.TRACE_ID: LOGGER.warn(message, t); break; case LogChute.ERROR_ID: LOGGER.error(message, t); break; case LogChute.DEBUG_ID: default: LOGGER.debug(message, t); break; } }
Example 2
Source File: Slf4jLogChute.java From minnal with Apache License 2.0 | 6 votes |
/** * Checks whether the specified log level is enabled. */ public boolean isLevelEnabled(int level) { switch (level) { case LogChute.DEBUG_ID: return log.isDebugEnabled(); case LogChute.INFO_ID: return log.isInfoEnabled(); case LogChute.TRACE_ID: return log.isTraceEnabled(); case LogChute.WARN_ID: return log.isWarnEnabled(); case LogChute.ERROR_ID: return log.isErrorEnabled(); default: return true; } }
Example 3
Source File: Slf4jLogChute.java From minnal with Apache License 2.0 | 6 votes |
/** * Send a log message from Velocity with an error. */ public void log(int level, String message, Throwable t) { switch (level) { case LogChute.WARN_ID: log.warn(message, t); break; case LogChute.INFO_ID: log.info(message, t); break; case LogChute.TRACE_ID: log.trace(message, t); break; case LogChute.ERROR_ID: log.error(message, t); break; case LogChute.DEBUG_ID: default: log.debug(message, t); break; } }
Example 4
Source File: Slf4jLogChute.java From minnal with Apache License 2.0 | 6 votes |
/** * Send a log message from Velocity. */ public void log(int level, String message) { switch (level) { case LogChute.WARN_ID: log.warn(message); break; case LogChute.INFO_ID: log.info(message); break; case LogChute.TRACE_ID: log.trace(message); break; case LogChute.ERROR_ID: log.error(message); break; case LogChute.DEBUG_ID: default: log.debug(message); break; } }
Example 5
Source File: SLF4JLogChute.java From sakai with Educational Community License v2.0 | 6 votes |
/** * @see LogChute#isLevelEnabled(int) */ public boolean isLevelEnabled(int level) { switch (level) { case LogChute.DEBUG_ID: return log.isDebugEnabled(); case LogChute.INFO_ID: return log.isInfoEnabled(); case LogChute.TRACE_ID: return log.isTraceEnabled(); case LogChute.WARN_ID: return log.isWarnEnabled(); case LogChute.ERROR_ID: return log.isErrorEnabled(); default: return true; } }
Example 6
Source File: SLF4JLogChute.java From sakai with Educational Community License v2.0 | 6 votes |
/** * @see LogChute#log(int, String, Throwable) */ public void log(int level, String message, Throwable t) { switch (level) { case LogChute.WARN_ID: log.warn(message, t); break; case LogChute.INFO_ID: log.info(message, t); break; case LogChute.TRACE_ID: log.trace(message, t); break; case LogChute.ERROR_ID: log.error(message, t); break; case LogChute.DEBUG_ID: default: log.debug(message, t); break; } }
Example 7
Source File: SLF4JLogChute.java From sakai with Educational Community License v2.0 | 6 votes |
/** * @see LogChute#log(int, String) */ public void log(int level, String message) { switch (level) { case LogChute.WARN_ID: log.warn(message); break; case LogChute.INFO_ID: log.info(message); break; case LogChute.TRACE_ID: log.trace(message); break; case LogChute.ERROR_ID: log.error(message); break; case LogChute.DEBUG_ID: default: log.debug(message); break; } }
Example 8
Source File: SLF4JLogChute.java From sakai with Educational Community License v2.0 | 6 votes |
/** * @see LogChute#isLevelEnabled(int) */ public boolean isLevelEnabled(int level) { switch (level) { case LogChute.DEBUG_ID: return log.isDebugEnabled(); case LogChute.INFO_ID: return log.isInfoEnabled(); case LogChute.TRACE_ID: return log.isTraceEnabled(); case LogChute.WARN_ID: return log.isWarnEnabled(); case LogChute.ERROR_ID: return log.isErrorEnabled(); default: return true; } }
Example 9
Source File: SLF4JLogChute.java From sakai with Educational Community License v2.0 | 6 votes |
/** * @see LogChute#log(int, String, Throwable) */ public void log(int level, String message, Throwable t) { switch (level) { case LogChute.WARN_ID: log.warn(message, t); break; case LogChute.INFO_ID: log.info(message, t); break; case LogChute.TRACE_ID: log.trace(message, t); break; case LogChute.ERROR_ID: log.error(message, t); break; case LogChute.DEBUG_ID: default: log.debug(message, t); break; } }
Example 10
Source File: SLF4JLogChute.java From sakai with Educational Community License v2.0 | 6 votes |
/** * @see LogChute#log(int, String) */ public void log(int level, String message) { switch (level) { case LogChute.WARN_ID: log.warn(message); break; case LogChute.INFO_ID: log.info(message); break; case LogChute.TRACE_ID: log.trace(message); break; case LogChute.ERROR_ID: log.error(message); break; case LogChute.DEBUG_ID: default: log.debug(message); break; } }
Example 11
Source File: VelocityLogChute.java From watcher with Apache License 2.0 | 6 votes |
@Override public boolean isLevelEnabled(int level) { switch (level) { case LogChute.DEBUG_ID: return logger.isDebugEnabled(); case LogChute.INFO_ID: return logger.isInfoEnabled(); case LogChute.TRACE_ID: return logger.isTraceEnabled(); case LogChute.WARN_ID: return logger.isWarnEnabled(); case LogChute.ERROR_ID: return logger.isErrorEnabled(); default: return true; } }
Example 12
Source File: VelocityLogChute.java From watcher with Apache License 2.0 | 6 votes |
@Override public void log(int level, String message, Throwable t) { switch (level) { case LogChute.WARN_ID: logger.warn(message, t); break; case LogChute.INFO_ID: logger.info(message, t); break; case LogChute.TRACE_ID: logger.trace(message, t); break; case LogChute.ERROR_ID: logger.error(message, t); break; case LogChute.DEBUG_ID: default: logger.debug(message, t); break; } }
Example 13
Source File: VelocityLogChute.java From watcher with Apache License 2.0 | 6 votes |
@Override public void log(int level, String message) { switch (level) { case LogChute.WARN_ID: logger.warn(message); break; case LogChute.INFO_ID: logger.info(message); break; case LogChute.TRACE_ID: logger.trace(message); break; case LogChute.ERROR_ID: logger.error(message); break; case LogChute.DEBUG_ID: default: logger.debug(message); break; } }
Example 14
Source File: VelocitySlf4JLogSystem.java From feeyo-hlsserver with Apache License 2.0 | 6 votes |
@Override public boolean isLevelEnabled(int level) { switch (level) { case LogChute.DEBUG_ID: return LOGGER.isDebugEnabled(); case LogChute.INFO_ID: return LOGGER.isInfoEnabled(); case LogChute.TRACE_ID: return LOGGER.isTraceEnabled(); case LogChute.WARN_ID: return LOGGER.isWarnEnabled(); case LogChute.ERROR_ID: return LOGGER.isErrorEnabled(); default: return true; } }
Example 15
Source File: VelocitySlf4JLogSystem.java From feeyo-hlsserver with Apache License 2.0 | 6 votes |
@Override public void log(int level, String message) { switch (level) { case LogChute.WARN_ID: LOGGER.warn(message); break; case LogChute.INFO_ID: LOGGER.info(message); break; case LogChute.TRACE_ID: LOGGER.trace(message); break; case LogChute.ERROR_ID: LOGGER.error(message); break; case LogChute.DEBUG_ID: default: LOGGER.debug(message); break; } }
Example 16
Source File: ExtensionManager.java From jsqsh with Apache License 2.0 | 5 votes |
private String logPrefix(int level) { switch (level) { case LogChute.TRACE_ID: return "TRACE"; case LogChute.DEBUG_ID: return "DEBUG"; case LogChute.INFO_ID: return "INOF"; case LogChute.WARN_ID: return "WARN"; case LogChute.ERROR_ID: return "ERROR"; default: return "UNKNOWN"; } }
Example 17
Source File: StringExpander.java From jsqsh with Apache License 2.0 | 5 votes |
private String logPrefix(int level) { switch (level) { case LogChute.TRACE_ID: return "TRACE"; case LogChute.DEBUG_ID: return "DEBUG"; case LogChute.INFO_ID: return "INOF"; case LogChute.WARN_ID: return "WARN"; case LogChute.ERROR_ID: return "ERROR"; default: return "UNKNOWN"; } }
Example 18
Source File: MojoLogChute.java From appbundle-maven-plugin with Apache License 2.0 | 5 votes |
public void log(int i, String string) { switch(i) { case LogChute.TRACE_ID: mojo.getLog().debug(string); break; case LogChute.DEBUG_ID: mojo.getLog().debug(string); break; case LogChute.INFO_ID: mojo.getLog().info(string); break; case LogChute.WARN_ID: mojo.getLog().warn(string); break; case LogChute.ERROR_ID: mojo.getLog().error(string); break; default: mojo.getLog().debug(string); } }
Example 19
Source File: MojoLogChute.java From appbundle-maven-plugin with Apache License 2.0 | 5 votes |
public void log(int i, String string, Throwable thrwbl) { switch(i) { case LogChute.TRACE_ID: mojo.getLog().debug(string, thrwbl); break; case LogChute.DEBUG_ID: mojo.getLog().debug(string, thrwbl); break; case LogChute.INFO_ID: mojo.getLog().info(string, thrwbl); break; case LogChute.WARN_ID: mojo.getLog().warn(string, thrwbl); break; case LogChute.ERROR_ID: mojo.getLog().error(string, thrwbl); break; default: mojo.getLog().debug(string, thrwbl); } }
Example 20
Source File: MojoLogChute.java From appbundle-maven-plugin with Apache License 2.0 | 5 votes |
public boolean isLevelEnabled(int i) { switch(i) { case LogChute.TRACE_ID: return false; case LogChute.DEBUG_ID: return mojo.getLog().isDebugEnabled(); case LogChute.INFO_ID: return mojo.getLog().isInfoEnabled(); case LogChute.WARN_ID: return mojo.getLog().isWarnEnabled(); case LogChute.ERROR_ID: return mojo.getLog().isErrorEnabled(); default: return false; } }