Codota Logo
DefaultLog
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • JTextField (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now