@Override public void warn( Throwable t, I18nResource message, Object... params ) { if (!isWarnEnabled()) return; logger.write(MessageType.WARNING, message, params, t); }
/** * Return a logger associated with this context. This logger records only those activities within the context and provide a * way to capture the context-specific activities. All log messages are also sent to the system logger, so classes that log * via this mechanism should <i>not</i> also {@link Logger#getLogger(Class) obtain a system logger}. * * @param clazz the class that is doing the logging * @return the logger, named after <code>clazz</code>; never null * @see #getLogger(String) */ public Logger getLogger( Class<?> clazz ) { return Logger.getLogger(clazz); }
@Override public void trace( String message, Object... params ) { logger.trace(message, params); }
@Override public void debug( String message, Object... params ) { logger.debug(message, params); }
private void logDebug(String message, Object...args) { if (LOGGER.isDebugEnabled()) { LOGGER.debug(message, args); } }
@Override public void rollback() { if (logger.isTraceEnabled()) { logger.trace("'{0}' ignoring rollback call coming from ModeShape.", id); } // nothing by default }
@Override public boolean isTraceEnabled() { return logger.isTraceEnabled(); } }
/** * Return a logger named according to the name parameter. * * @param name The name of the logger. * @return logger */ public static Logger getLogger( String name ) { return LogFactory.getLogFactory().getLogger(name); }
@Override public void error( SAXParseException error ) { LOGGER.debug(error, "SAX error:"); } }
/** * Return a logger associated with this context. This logger records only those activities within the context and provide a * way to capture the context-specific activities. All log messages are also sent to the system logger, so classes that log * via this mechanism should <i>not</i> also {@link Logger#getLogger(Class) obtain a system logger}. * * @param clazz the class that is doing the logging * @return the logger, named after <code>clazz</code>; never null * @see #getLogger(String) */ public Logger getLogger( Class<?> clazz ) { return Logger.getLogger(clazz); }
@Override public void commit( ITransaction transaction ) throws WebdavException { // do nothing LOG.trace("LocalFileSystemStore.commit()"); }
@Override public void warn( I18nResource message, Object... params ) { if (!isWarnEnabled()) return; logger.write(MessageType.WARNING, message, params, null); }
@Override public void debug( Throwable t, String message, Object... params ) { logger.debug(t, message, params); }
/** * Return a logger associated with this context. This logger records only those activities within the context and provide a * way to capture the context-specific activities. All log messages are also sent to the system logger, so classes that log * via this mechanism should <i>not</i> also {@link Logger#getLogger(Class) obtain a system logger}. * * @param name the name for the logger * @return the logger, named after <code>clazz</code>; never null * @see #getLogger(Class) */ public Logger getLogger( String name ) { return Logger.getLogger(name); }
@Override public void trace( Throwable t, String message, Object... params ) { logger.trace(t, message, params); }
@Override public void debug( String message, Object... params ) { logger.debug(message, params); }
@Override public void trace( Throwable t, String message, Object... params ) { logger.trace(t, message, params); }
@Override public void debug( Throwable t, String message, Object... params ) { logger.debug(t, message, params); }
@Override public void trace( String message, Object... params ) { logger.trace(message, params); }
@Override public void debug( String message, Object... params ) { logger.debug(message, params); }