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

How to use
DefaultLog
in
org.jfree.base.log

Best Java code snippets using org.jfree.base.log.DefaultLog (Showing top 9 results out of 315)

origin: org.jfree/com.springsource.org.jfree

/**
 * Initializes the log system after the log module was loaded and a log target
 * was defined. This is the second step of the log initialisation.
 */
public void init() {
  removeTarget(DEFAULT_LOG_TARGET);
  final String logLevel = LogConfiguration.getLogLevel();
  if (logLevel.equalsIgnoreCase("error")) {
    setDebuglevel(LogTarget.ERROR);
  }
  else if (logLevel.equalsIgnoreCase("warn")) {
    setDebuglevel(LogTarget.WARN);
  }
  else if (logLevel.equalsIgnoreCase("info")) {
    setDebuglevel(LogTarget.INFO);
  }
  else if (logLevel.equalsIgnoreCase("debug")) {
    setDebuglevel(LogTarget.DEBUG);
  }
}
origin: jfree/jcommon

/**
 * Adds a log target to this facility. Log targets get informed, via the
 * LogTarget interface, whenever a message is logged with this class.
 *
 * @param target the target.
 */
public synchronized void addTarget(final LogTarget target)
{
 super.addTarget(target);
 // as soon as there is a real log target added, we do no longer need
 // the default logging. This was only installed to be able to send messages
 // if the deepest basic logging failed.
 if (target != DEFAULT_LOG_TARGET) {
   removeTarget(DEFAULT_LOG_TARGET);
 }
}
origin: org.jfree/jcommon

   (PrintStreamLogTarget.class.getName()))
DefaultLog.installDefaultLog();
Log.getInstance().addTarget(new PrintStreamLogTarget());
origin: org.jfree/jcommon

/**
 * Adds a log target to this facility. Log targets get informed, via the
 * LogTarget interface, whenever a message is logged with this class.
 *
 * @param target the target.
 */
public synchronized void addTarget(final LogTarget target)
{
 super.addTarget(target);
 // as soon as there is a real log target added, we do no longer need
 // the default logging. This was only installed to be able to send messages
 // if the deepest basic logging failed.
 if (target != DEFAULT_LOG_TARGET) {
   removeTarget(DEFAULT_LOG_TARGET);
 }
}
origin: jfree/jcommon

   (PrintStreamLogTarget.class.getName()))
DefaultLog.installDefaultLog();
Log.getInstance().addTarget(new PrintStreamLogTarget());
origin: jfree/jcommon

/**
 * Initializes the log system after the log module was loaded and a log target
 * was defined. This is the second step of the log initialisation.
 */
public void init() {
  removeTarget(DEFAULT_LOG_TARGET);
  final String logLevel = LogConfiguration.getLogLevel();
  if (logLevel.equalsIgnoreCase("error")) {
    setDebuglevel(LogTarget.ERROR);
  }
  else if (logLevel.equalsIgnoreCase("warn")) {
    setDebuglevel(LogTarget.WARN);
  }
  else if (logLevel.equalsIgnoreCase("info")) {
    setDebuglevel(LogTarget.INFO);
  }
  else if (logLevel.equalsIgnoreCase("debug")) {
    setDebuglevel(LogTarget.DEBUG);
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Adds a log target to this facility. Log targets get informed, via the
 * LogTarget interface, whenever a message is logged with this class.
 *
 * @param target the target.
 */
public synchronized void addTarget(final LogTarget target)
{
 super.addTarget(target);
 // as soon as there is a real log target added, we do no longer need
 // the default logging. This was only installed to be able to send messages
 // if the deepest basic logging failed.
 if (target != DEFAULT_LOG_TARGET) {
   removeTarget(DEFAULT_LOG_TARGET);
 }
}
origin: org.jfree/com.springsource.org.jfree

   (PrintStreamLogTarget.class.getName()))
DefaultLog.installDefaultLog();
Log.getInstance().addTarget(new PrintStreamLogTarget());
origin: org.jfree/jcommon

/**
 * Initializes the log system after the log module was loaded and a log target
 * was defined. This is the second step of the log initialisation.
 */
public void init() {
  removeTarget(DEFAULT_LOG_TARGET);
  final String logLevel = LogConfiguration.getLogLevel();
  if (logLevel.equalsIgnoreCase("error")) {
    setDebuglevel(LogTarget.ERROR);
  }
  else if (logLevel.equalsIgnoreCase("warn")) {
    setDebuglevel(LogTarget.WARN);
  }
  else if (logLevel.equalsIgnoreCase("info")) {
    setDebuglevel(LogTarget.INFO);
  }
  else if (logLevel.equalsIgnoreCase("debug")) {
    setDebuglevel(LogTarget.DEBUG);
  }
}
org.jfree.base.logDefaultLog

Javadoc

A default log implementation. The Log class defines how to create Logger-contexts and how to forward messages to the logtargets.

Most used methods

  • installDefaultLog
    Makes this implementation the default instance.
  • removeTarget
  • setDebuglevel

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Table (org.hibernate.mapping)
    A relational table
  • Best IntelliJ 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