Package org.apache.turbine.services.logging

Examples of org.apache.turbine.services.logging.LoggingService


     * This method returns logger with given name if such logger exsists,
     * or the default logger.
     */
    public static Logger getLogger(String logName)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        return logger.getLogger(logName);
    }
View Full Code Here


    /**
     * This method sets the log level in default logger
     */
    public static void setLogLevel(int level)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.setLogLevel(level);
    }
View Full Code Here

    /**
     * This method sets the log level in the logger of given name
     */
    public static void setLogLevel(String logName, int level)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.setLogLevel(logName, level);
    }
View Full Code Here

     * @param format String describing what information should be extracted from
     *        RunData
     */
    public static void setFormat(String format)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.setFormat(format);
    }
View Full Code Here

     * @param format String describing what information should be extracted from
     *        RunData
     */
    public static void setFormat(String logName, String format)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.setFormat(logName, format);
    }
View Full Code Here

     * This is a log method with logLevel == DEBUG, printing is done by
     * the default logger
     */
    public static void debug(String message)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.debug(message);
    }
View Full Code Here

     * This is a log method with logLevel == DEBUG, printing is done by
     * the default logger
     */
    public static void debug(String message, Throwable t)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.debug(message, t);
    }
View Full Code Here

     * This is a log method with logLevel == DEBUG, printing is done by
     * the given logger
     */
    public static void debug(String logName ,String message, Throwable t)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.debug(logName, message, t);
    }
View Full Code Here

     * This is a log method with logLevel == DEBUG, printing is done by
     * the given logger
     */
    public static void debug(String logName, String message)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.debug(logName, message);
    }
View Full Code Here

     * This is a log method with logLevel == DEBUG, printing is done by
     * the default logger
     */
    public static void debug(String message, RunData data)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.debug(message, data);
    }
View Full Code Here

TOP

Related Classes of org.apache.turbine.services.logging.LoggingService

Copyright © 2018 www.massapicom. 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.