congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JettyLogHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
JettyLogHandler
in
org.eclipse.jetty.util.log

Best Java code snippets using org.eclipse.jetty.util.log.JettyLogHandler (Showing top 6 results out of 315)

origin: org.eclipse.jetty/jetty-util

public JettyLogHandler()
{
  if (Boolean.parseBoolean(Log.__props.getProperty("org.eclipse.jetty.util.log.DEBUG","false")))
  {
    setLevel(Level.FINEST);
  }
  if (Boolean.parseBoolean(Log.__props.getProperty("org.eclipse.jetty.util.log.IGNORED","false")))
  {
    setLevel(Level.ALL);
  }
  
  System.err.printf("%s Initialized at level [%s]%n",this.getClass().getName(),getLevel().getName());
}
origin: org.eclipse.jetty/jetty-util

private synchronized String formatMessage(LogRecord record)
{
  String msg = getMessage(record);
  try
  {
    Object params[] = record.getParameters();
    if ((params == null) || (params.length == 0))
    {
      return msg;
    }
    if (Pattern.compile("\\{\\d+\\}").matcher(msg).find())
    {
      return MessageFormat.format(msg,params);
    }
    return msg;
  }
  catch (Exception ex)
  {
    return msg;
  }
}
origin: org.eclipse.jetty/jetty-util

@Override
public void publish(LogRecord record)
  org.eclipse.jetty.util.log.Logger JLOG = getJettyLogger(record.getLoggerName());
  String msg = formatMessage(record);
origin: jenkinsci/winstone

@Override
public void publish(LogRecord record)
  org.eclipse.jetty.util.log.Logger JLOG = getJettyLogger(record.getLoggerName());
  String msg = formatMessage(record);
origin: jenkinsci/winstone

public JettyLogHandler()
{
  if (Boolean.parseBoolean(Log.__props.getProperty("org.eclipse.jetty.util.log.DEBUG","false")))
  {
    setLevel(Level.FINEST);
  }
  if (Boolean.parseBoolean(Log.__props.getProperty("org.eclipse.jetty.util.log.IGNORED","false")))
  {
    setLevel(Level.ALL);
  }
  
  System.err.printf("%s Initialized at level [%s]%n",this.getClass().getName(),getLevel().getName());
}
origin: jenkinsci/winstone

private synchronized String formatMessage(LogRecord record)
{
  String msg = getMessage(record);
  try
  {
    Object params[] = record.getParameters();
    if ((params == null) || (params.length == 0))
    {
      return msg;
    }
    if (Pattern.compile("\\{\\d+\\}").matcher(msg).find())
    {
      return MessageFormat.format(msg,params);
    }
    return msg;
  }
  catch (Exception ex)
  {
    return msg;
  }
}
org.eclipse.jetty.util.logJettyLogHandler

Javadoc

Redirect java.util.logging events to Jetty Log

Most used methods

  • formatMessage
  • getJettyLogger
  • getLevel
  • getMessage
  • setLevel

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JOptionPane (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
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