Package org.apache.log

Examples of org.apache.log.Logger.warn()


                new DatagramOutputTarget( address, 514, formatter );

            final Logger logger = Hierarchy.getDefaultHierarchy().getLoggerFor( "foo" );
            logger.setLogTargets( new LogTarget[]{target} );

            logger.warn( message, new Exception() );
        }
        catch( final Throwable t )
        {
            t.printStackTrace();
        }
View Full Code Here


    {
        Logger logger = getLogger();
        switch (level)
  {
      case LogSystem.WARN_ID:
    logger.warn(message);
    break;
      case LogSystem.INFO_ID:
    logger.info(message);
    break;
      case LogSystem.DEBUG_ID:
View Full Code Here

        subcontext.put("servlet-context", this.servletContext);
        if (this.servletContextPath == null) {
            File logSCDir = new File(this.workDir, "log");
            logSCDir.mkdirs();
            if (logger.isWarnEnabled()) {
                logger.warn("Setting servlet-context for LogKit to " + logSCDir);
            }
            subcontext.put("context-root", logSCDir.toString());
        } else {
            subcontext.put("context-root", this.servletContextPath);
        }
View Full Code Here

    {
        Logger logger = getLogger();
        switch (level)
    {
        case LogSystem.WARN_ID:
        logger.warn(message);
        break;
        case LogSystem.INFO_ID:
        logger.info(message);
        break;
        case LogSystem.DEBUG_ID:
View Full Code Here

        subcontext.put("servlet-context", this.servletContext);
        if (this.servletContextPath == null) {
            File logSCDir = new File(this.workDir, "log");
            logSCDir.mkdirs();
            if (logger.isWarnEnabled()) {
                logger.warn("Setting servlet-context for LogKit to " + logSCDir);
            }
            subcontext.put("context-root", logSCDir.toString());
        } else {
            subcontext.put("context-root", this.servletContextPath);
        }
View Full Code Here

                new DatagramOutputTarget( address, 514, formatter );

            final Logger logger = Hierarchy.getDefaultHierarchy().getLoggerFor( "foo" );
            logger.setLogTargets( new LogTarget[]{target} );

            logger.warn( message, new Exception() );
        }
        catch( final Throwable t )
        {
            t.printStackTrace();
        }
View Full Code Here

                new DatagramOutputTarget( address, 514, formatter );

            final Logger logger = Hierarchy.getDefaultHierarchy().getLoggerFor( "foo" );
            logger.setLogTargets( new LogTarget[]{target} );

            logger.warn( message, new Exception() );
        }
        catch( final Throwable t )
        {
            t.printStackTrace();
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.