Tabnine Logo
Logger
Code IndexAdd Tabnine to your IDE (free)

How to use
Logger
in
org.apache.avalon.framework.logger

Best Java code snippets using org.apache.avalon.framework.logger.Logger (Showing top 20 results out of 369)

origin: commons-logging/commons-logging

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.debug</code>.
 *
 * @param message to log
 * @see org.apache.commons.logging.Log#trace(Object)
 */
public void trace(Object message) {
  if (getLogger().isDebugEnabled()) {
    getLogger().debug(String.valueOf(message));
  }
}
origin: commons-logging/commons-logging

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.error</code>.
 *
 * @param message to log
 * @see org.apache.commons.logging.Log#error(Object)
 */
public void error(Object message) {
  if (getLogger().isErrorEnabled()) {
    getLogger().error(String.valueOf(message));
  }
}
origin: commons-logging/commons-logging

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @see org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message));
  }
}
origin: commons-logging/commons-logging

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.warn</code>.
 *
 * @param message to log
 * @param t log this cause
 * @see org.apache.commons.logging.Log#warn(Object, Throwable)
 */
public void warn(Object message, Throwable t) {
  if (getLogger().isWarnEnabled()) {
    getLogger().warn(String.valueOf(message), t);
  }
}
origin: commons-logging/commons-logging

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.fatalError</code>.
 *
 * @param message to log
 * @see org.apache.commons.logging.Log#fatal(Object)
 */
public void fatal(Object message) {
  if (getLogger().isFatalErrorEnabled()) {
    getLogger().fatalError(String.valueOf(message));
  }
}
origin: org.apache.fulcrum/fulcrum-testcontainer

/**
 * Disposes of the container and releases resources.
 */
public void dispose()
{
  getLogger().debug("Disposing of container...");
  if( this.manager != null )
  {
    this.manager.dispose();
  }
  getLogger().info("YAFFI Container has been disposed.");
}
origin: commons-logging/commons-logging

/**
 * Constructs an <code>AvalonLogger</code> that will log to a child
 * of the <code>Logger</code> set by calling {@link #setDefaultLogger}.
 *
 * @param name the name of the avalon logger implementation to delegate to
 */
public AvalonLogger(String name) {
  if (defaultLogger == null) {
    throw new NullPointerException("default logger has to be specified if this constructor is used!");
  }
  this.logger = defaultLogger.getChildLogger(name);
}
origin: commons-logging/commons-logging

/**
 * Is logging to <code>org.apache.avalon.framework.logger.Logger.debug</code> enabled?
 * @see org.apache.commons.logging.Log#isDebugEnabled()
 */
public boolean isDebugEnabled() {
  return getLogger().isDebugEnabled();
}
origin: commons-logging/commons-logging

/**
 * Is logging to <code>org.apache.avalon.framework.logger.Logger.warn</code> enabled?
 * @see org.apache.commons.logging.Log#isWarnEnabled()
 */
public boolean isWarnEnabled() {
  return getLogger().isWarnEnabled();
}
origin: org.codehaus.plexus/plexus-ftpd

  public void execute() {
    try {
      spy.request(str + '\n');
    }
    catch(Exception ex) {
      mSpy = null;
      mConfig.getLogger().error("BaseFtpConnection.spyPrint()", ex);
    }
  }
};
origin: org.apache.excalibur.fortress.container/excalibur-fortress-container-impl

public Object lookup(String role) throws ServiceException
{
  if ( Pipe.class.getName().equals( role ) )
  {
    m_ealogger.info("Using deprecated role (Queue.ROLE) for the Command Sink.  Use \"Sink.ROLE\" instead.");
    return lookup(Sink.class.getName());
  }
  return super.lookup( role );
}
origin: commons-logging/commons-logging

/**
 * Is logging to <code>org.apache.avalon.framework.logger.Logger.info</code> enabled?
 * @see org.apache.commons.logging.Log#isInfoEnabled()
 */
public boolean isInfoEnabled() {
  return getLogger().isInfoEnabled();
}
origin: org.apache.excalibur.containerkit/excalibur-logger

public void warn( final String message, final Throwable throwable )
{
  final Logger logger = getLogger();
  try
  {
    logger.warn( message, throwable );
  }
  finally
  {
    releaseLogger();
  }
}
origin: commons-logging/commons-logging

/**
 * Is logging to <code>org.apache.avalon.framework.logger.Logger.fatalError</code> enabled?
 * @see org.apache.commons.logging.Log#isFatalEnabled()
 */
public boolean isFatalEnabled() {
  return getLogger().isFatalErrorEnabled();
}
origin: commons-logging/commons-logging

/**
 * Is logging to <code>org.apache.avalon.framework.logger.Logger.error</code> enabled?
 * @see org.apache.commons.logging.Log#isErrorEnabled()
 */
public boolean isErrorEnabled() {
  return getLogger().isErrorEnabled();
}
origin: commons-logging/commons-logging

  /**
   * Logs a message with <code>org.apache.avalon.framework.logger.Logger.warn</code>.
   *
   * @param message to log
   * @see org.apache.commons.logging.Log#warn(Object)
   */
  public void warn(Object message) {
    if (getLogger().isWarnEnabled()) {
      getLogger().warn(String.valueOf(message));
    }
  }
}
origin: commons-logging/commons-logging

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.fatalError</code>.
 *
 * @param message to log.
 * @param t log this cause.
 * @see org.apache.commons.logging.Log#fatal(Object, Throwable)
 */
public void fatal(Object message, Throwable t) {
  if (getLogger().isFatalErrorEnabled()) {
    getLogger().fatalError(String.valueOf(message), t);
  }
}
origin: camunda/camunda-bpm-platform

/**
 * Constructs an <code>AvalonLogger</code> that will log to a child
 * of the <code>Logger</code> set by calling {@link #setDefaultLogger}.
 * @param name the name of the avalon logger implementation to delegate to
 */
public AvalonLogger(String name) {
  if (defaultLogger == null)
    throw new NullPointerException("default logger has to be specified if this constructor is used!");
  this.logger = defaultLogger.getChildLogger(name);
}
origin: commons-logging/commons-logging

/**
 * Is logging to <code>org.apache.avalon.framework.logger.Logger.debug</code> enabled?
 * @see org.apache.commons.logging.Log#isTraceEnabled()
 */
public boolean isTraceEnabled() {
  return getLogger().isDebugEnabled();
}
origin: camunda/camunda-bpm-platform

/**
 * Is logging to 
 * <code>org.apache.avalon.framework.logger.Logger.warn</code> enabled?
 * @see org.apache.commons.logging.Log#isWarnEnabled()
 */
public boolean isWarnEnabled() {
  return getLogger().isWarnEnabled();
}
org.apache.avalon.framework.loggerLogger

Javadoc

This is a facade for the different logging subsystems. It offers a simplified interface that follows IOC patterns and a simplified priority/level/severity abstraction.

Most used methods

  • debug
    Log a debug message.
  • error
    Log a error message.
  • info
    Log a info message.
  • warn
    Log a warn message.
  • isDebugEnabled
    Determine if messages of priority "debug" will be logged.
  • getChildLogger
    Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name] T
  • isWarnEnabled
    Determine if messages of priority "warn" will be logged.
  • isInfoEnabled
    Determine if messages of priority "info" will be logged.
  • isErrorEnabled
    Determine if messages of priority "error" will be logged.
  • isFatalErrorEnabled
    Determine if messages of priority "fatalError" will be logged.
  • fatalError
    Log a fatalError message.
  • fatalError

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now