Codota Logo
LoggerPlugin.init
Code IndexAdd Codota to your IDE (free)

How to use
init
method
in
org.jboss.logging.LoggerPlugin

Best Java code snippets using org.jboss.logging.LoggerPlugin.init (Showing top 2 results out of 315)

  • Common ways to obtain LoggerPlugin
private void myMethod () {
LoggerPlugin l =
  • Codota IconClass klass;(LoggerPlugin) klass.newInstance()
  • Smart code suggestions by Codota
}
origin: jboss.logging/jboss-logging-spi

protected static LoggerPlugin getDelegatePlugin(String name)
{
 LoggerPlugin plugin = null;
 try
 {
   plugin = (LoggerPlugin) pluginClass.newInstance();
 }
 catch (Throwable e)
 {
   plugin = new NullLoggerPlugin();
 }
 try
 {
   plugin.init(name);
 }
 catch(Throwable e)
 {
   System.err.println("Failed to initalize plugin: "+plugin);
   plugin = new NullLoggerPlugin();
 }
 return plugin;
}
origin: jboss/jboss-logging-spi

/**
* Get the delegate plugin
* 
* @param name the name of the logger
* @return the plugin
*/
protected static LoggerPlugin getDelegatePlugin(String name)
{
 LoggerPlugin plugin = null;
 try
 {
   plugin = (LoggerPlugin) pluginClass.newInstance();
 }
 catch (Throwable e)
 {
   plugin = new NullLoggerPlugin();
 }
 try
 {
   plugin.init(name);
 }
 catch (Throwable e)
 {
   String extraInfo = e.getMessage();
   System.err.println("Failed to initalize plugin: " + plugin
      + (extraInfo != null ? ", cause: " + extraInfo : ""));
   plugin = new NullLoggerPlugin();
 }
 return plugin;
}
org.jboss.loggingLoggerPlugininit

Javadoc

Initialise the logger with the given name

Popular methods of LoggerPlugin

  • debug
    Issue a log msg and throwable with a level of DEBUG.
  • error
    Issue a log msg and throwable with a level of ERROR.
  • fatal
    Issue a log msg and throwable with a level of FATAL.
  • info
    Issue a log msg and throwable with a level of INFO.
  • isDebugEnabled
    Check to see if the DEBUG level is enabled for this logger.
  • isInfoEnabled
    Check to see if the INFO level is enabled for this logger.
  • isTraceEnabled
    Check to see if the TRACE level is enabled for this logger.
  • trace
    Issue a log msg and throwable with a level of TRACE.
  • warn
    Issue a log msg and throwable with a level of WARN.
  • getInstance
    Get a logger plugin instance with the given name. The returned instance may be a cached or newly cre

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • putExtra (Intent)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IsNull (org.hamcrest.core)
    Is the value null?
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