Codota Logo
org.jfree.base.log
Code IndexAdd Codota to your IDE (free)

How to use org.jfree.base.log

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.jfree/com.springsource.org.jfree

/**
 * DefaultConstructor. Loads the module specification.
 *
 * @throws ModuleInitializeException if an error occured.
 */
public DefaultLogModule() throws ModuleInitializeException
{
 loadModuleInfo();
}
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: jfree/jcommon

   throws ModuleInitializeException
if (LogConfiguration.isDisableLogging())
if (LogConfiguration.getLogTarget().equals
    (PrintStreamLogTarget.class.getName()))
 DefaultLog.installDefaultLog();
 Log.getInstance().addTarget(new PrintStreamLogTarget());
origin: jfree/jcommon

for (int i = 0; i < activeModules.size(); i++) {
  final Module mod = (Module) activeModules.get(i);
  p.print(new PadMessage(mod.getModuleClass(), 70));
  p.print(" [");
  p.print(mod.getSubSystem());
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

   throws ModuleInitializeException
if (LogConfiguration.isDisableLogging())
if (LogConfiguration.getLogTarget().equals
    (PrintStreamLogTarget.class.getName()))
 DefaultLog.installDefaultLog();
 Log.getInstance().addTarget(new PrintStreamLogTarget());
origin: org.jfree/jcommon

for (int i = 0; i < activeModules.size(); i++) {
  final Module mod = (Module) activeModules.get(i);
  p.print(new PadMessage(mod.getModuleClass(), 70));
  p.print(" [");
  p.print(mod.getSubSystem());
origin: jfree/jcommon

/**
 * DefaultConstructor. Loads the module specification.
 *
 * @throws ModuleInitializeException if an error occured.
 */
public DefaultLogModule() throws ModuleInitializeException
{
 loadModuleInfo();
}
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: 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);
  }
}
origin: org.jfree/jcommon

   throws ModuleInitializeException
if (LogConfiguration.isDisableLogging())
if (LogConfiguration.getLogTarget().equals
    (PrintStreamLogTarget.class.getName()))
 DefaultLog.installDefaultLog();
 Log.getInstance().addTarget(new PrintStreamLogTarget());
origin: org.jfree/com.springsource.org.jfree

for (int i = 0; i < activeModules.size(); i++) {
  final Module mod = (Module) activeModules.get(i);
  p.print(new PadMessage(mod.getModuleClass(), 70));
  p.print(" [");
  p.print(mod.getSubSystem());
origin: org.jfree/jcommon

/**
 * DefaultConstructor. Loads the module specification.
 *
 * @throws ModuleInitializeException if an error occured.
 */
public DefaultLogModule() throws ModuleInitializeException
{
 loadModuleInfo();
}
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: jfree/jcommon

/**
 * Initializes all previously uninitialized modules. Once a module is initialized,
 * it is not re-initialized a second time.
 */
public synchronized void initializeModules() {
  // sort by subsystems and dependency
  PackageSorter.sort(this.modules);
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.configure(this.booter)) {
      Log.debug(new Log.SimpleMessage("Conf: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.initialize(this.booter)) {
      Log.debug(new Log.SimpleMessage("Init: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
}
origin: org.jfree/jcommon

/**
 * Initializes all previously uninitialized modules. Once a module is initialized,
 * it is not re-initialized a second time.
 */
public synchronized void initializeModules() {
  // sort by subsystems and dependency
  PackageSorter.sort(this.modules);
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.configure(this.booter)) {
      Log.debug(new Log.SimpleMessage("Conf: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.initialize(this.booter)) {
      Log.debug(new Log.SimpleMessage("Init: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Initializes all previously uninitialized modules. Once a module is initialized,
 * it is not re-initialized a second time.
 */
public synchronized void initializeModules() {
  // sort by subsystems and dependency
  PackageSorter.sort(this.modules);
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.configure(this.booter)) {
      Log.debug(new Log.SimpleMessage("Conf: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.initialize(this.booter)) {
      Log.debug(new Log.SimpleMessage("Init: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
}
org.jfree.base.log

Most used classes

  • DefaultLog
    A default log implementation. The Log class defines how to create Logger-contexts and how to forward
  • DefaultLogModule
    The module definition for the System.out-Logging. This is the default log implementation and is prov
  • LogConfiguration
    A log configuration class. This implementation is a simple frontend to the global configuration.
  • PadMessage
    A message object that pads the output if the text is shorter than the given length. This is usefull
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