Codota Logo
Logger.warn
Code IndexAdd Codota to your IDE (free)

How to use
warn
method
in
org.eclipse.jetty.util.log.Logger

Best Java code snippets using org.eclipse.jetty.util.log.Logger.warn (Showing top 20 results out of 621)

Refine searchRefine arrow

  • Logger.debug
  • Logger.isDebugEnabled
  • Logger.ignore
  • Common ways to obtain Logger
private void myMethod () {
Logger l =
  • Codota IconLog.getRootLogger()
  • Codota IconString name;new Slf4jLog(name)
  • Codota IconString name;new JavaUtilLog(name)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jetty/jetty-webapp

    : _locations.isIncludedAndNotExcluded(location);
if (LOG.isDebugEnabled())
  LOG.debug("match {} from {} byName={} byLocation={} in {}",clazz,location,byName,byLocation,this);
LOG.warn(e);
origin: org.eclipse.jetty/jetty-webapp

LOG.warn("Can't generate resourceBase as part of webapp tmp dir name: " + e);
LOG.debug(e);
origin: org.eclipse.jetty/jetty-webapp

    LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?
if (s.startsWith("t"))
  LOG.warn("Deprecated boolean load-on-startup.  Please use integer");
  order = 1;
    LOG.warn("Cannot parse load-on-startup " + s + ". Please use integer");
    LOG.ignore(e);
    LOG.warn(new Throwable()); // TODO throw ISE?
if (roleName != null && roleName.length() > 0 && roleLink != null && roleLink.length() > 0)
      LOG.warn(new Throwable()); // TODO throw ISE?
  LOG.warn("Ignored invalid security-role-ref element: " + "servlet-name=" + holder.getName() + ", " + securityRef);
      LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?
origin: org.eclipse.jetty/jetty-util

private void setFailed(Throwable th)
{
  _state = __FAILED;
  if (LOG.isDebugEnabled())
    LOG.warn(FAILED+" " + this+": "+th,th);
  for (Listener listener : _listeners)
    listener.lifeCycleFailure(this,th);
}
origin: org.eclipse.jetty/jetty-util

  JLOG.warn(msg,cause);
  JLOG.warn(msg);
  JLOG.debug(msg,cause);
  JLOG.debug(msg);
JLOG.ignore(cause);
return;
origin: org.eclipse.jetty/jetty-util

private void verifyIndirectTypes(Class<?> superClazz, Class<?> clazz, String typeName)
{
  try
  {
    // Report on super class deprecation too
    while (superClazz != null && superClazz != Object.class)
    {
      Deprecated supDepr = superClazz.getAnnotation(Deprecated.class);
      if (supDepr != null)
      {
        LOG.warn("Using indirect @Deprecated {} {} - (seen from {})",typeName,superClazz.getName(),clazz);
      }
      superClazz = superClazz.getSuperclass();
    }
  }
  catch (Throwable t)
  {
    LOG.ignore(t);
  }
}
origin: org.eclipse.jetty/jetty-webapp

if (LOG.isDebugEnabled()) LOG.debug("{} in mapping {} from defaults descriptor is overridden by ",ps,sm,servletName);
LOG.warn("Duplicate mapping from {} to {}", p, servletName);
if (LOG.isDebugEnabled()) LOG.debug("Removed empty mapping {}",sm);
listItor.remove();
if (LOG.isDebugEnabled()) LOG.debug("Removed path {} from mapping {}", p,sm);
origin: org.eclipse.jetty/jetty-util

public String toReplacedString()
{
  if (!isUtf8SequenceComplete())
  {
    _codep=0;
    _state = UTF8_ACCEPT;
    try
    {
      _appendable.append(REPLACEMENT);
    }
    catch(IOException e)
    {
      throw new RuntimeException(e);
    }
    Throwable th= new NotUtf8Exception("incomplete UTF8 sequence");
    LOG.warn(th.toString());
    LOG.debug(th);
  }
  return _appendable.toString();
}
origin: org.eclipse.jetty/jetty-util

  if (LOG.isDebugEnabled())
    LOG.debug("ALIAS abs={} can={}",abs,can);
LOG.warn("bad alias for {}: {}",file,e.toString());
LOG.debug(e);
try
  LOG.ignore(e2);
  throw new RuntimeException(e);
origin: org.eclipse.jetty/jetty-util

if (LOG.isDebugEnabled())
    LOG.warn("Couldn't stop {}{}", unstopped, dmp.toString());
    LOG.warn("{} Couldn't stop {}",this,unstopped);
origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
protected void onException(Throwable ex)
{
  if (ex instanceof EofException)
  {
    _log.ignore(ex);
    return;
  }
  _log.warn(ex.toString());
  _log.debug(ex);
  if (!response.isCommitted())
  {
    response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
  }
}
origin: org.eclipse.jetty/jetty-util

/** 
 * @see org.eclipse.jetty.util.preventers.AbstractLeakPreventer#prevent(java.lang.ClassLoader)
 */
@Override
public void prevent(ClassLoader loader)
{
  try
  {
    Class<?> clazz = Class.forName("sun.misc.GC");
    Method requestLatency = clazz.getMethod("requestLatency", new Class[] {long.class});
    requestLatency.invoke(null, Long.valueOf(Long.MAX_VALUE-1));
  }
  catch (ClassNotFoundException e)
  {
    LOG.ignore(e);
  }
  catch (Exception e)
  {
    LOG.warn(e);
  }
}
origin: org.eclipse.jetty/jetty-webapp

if(LOG.isDebugEnabled())
  LOG.debug("addJar - {}", fn);
String fnlc=fn.getName().toLowerCase(Locale.ENGLISH);
LOG.warn(Log.EXCEPTION,ex);
origin: org.eclipse.jetty/jetty-util

LOG.warn(e.toString());
LOG.debug(Log.EXCEPTION,e);
return new BadResource(url,e.toString());
origin: org.eclipse.jetty/jetty-util

    if (LOG.isDebugEnabled())
      LOG.debug("run {}", job);
    runJob(job);
    if (LOG.isDebugEnabled())
      LOG.debug("ran {}", job);
    if (Thread.interrupted())
LOG.ignore(e);
LOG.warn(e);
    LOG.warn("Unexpected thread death: {} in {}", this, QueuedThreadPool.this);
origin: com.ovea.tajin.server/tajin-server-jetty9

@Override
public int getSessions()
{
  int sessions=super.getSessions();
  if (LOG.isDebugEnabled())
  {
    if (_sessions.size()!=sessions)
      LOG.warn("sessions: "+_sessions.size()+"!="+sessions);
  }
  return sessions;
}
origin: org.eclipse.jetty/jetty-util

private void execute(Runnable task)
{
  try
  {
    _executor.execute(task);
  }
  catch (RejectedExecutionException e)
  {
    if (isRunning())
      LOG.warn(e);
    else
      LOG.ignore(e);
    if (task instanceof Closeable)
    {
      try
      {
        ((Closeable)task).close();
      }
      catch (Throwable e2)
      {
        LOG.ignore(e2);
      }
    }
  }
}
origin: org.eclipse.jetty/jetty-webapp

    LOG.warn(new Throwable()); // TODO throw ISE?
if (LOG.isDebugEnabled())
  LOG.debug("ContextParam: " + name + "=" + value);
origin: org.eclipse.jetty/jetty-util

LOG.warn("Retrying list:"+e);
LOG.debug(e);
close();
list = listEntries();
origin: org.eclipse.jetty/jetty-util

if (LOG.isDebugEnabled())
  LOG.debug("Starting java.nio file watching with {}",watchService);
    if (LOG.isDebugEnabled())
      LOG.debug("Waiting for poll({})", wait_time);
    key = wait_time<0?watch.take():wait_time>0?watch.poll(wait_time,updateQuietTimeUnit):watch.poll();
      LOG.warn(e);
      LOG.ignore(e);
org.eclipse.jetty.util.logLoggerwarn

Javadoc

Logs the given message at warn level, with Throwable information.

Popular methods of Logger

  • debug
    Logs the given Throwable information at debug level
  • isDebugEnabled
  • info
    Logs the given Throwable information at info level
  • ignore
    Ignore an exception.This should be used rather than an empty catch block.
  • getName
  • getLogger
  • setDebugEnabled
    Mutator used to turn debug on programmatically.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Path (java.nio.file)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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