Examples of LoggingService


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

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

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

    public static void error(String logName,
                            String message,
                            RunData data,
                            Throwable t)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.error(logName, message, data, t);
    }
View Full Code Here

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

     *
     * @deprecated You should use info or debug methods instead.
     */
    public static void note(String message)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.info(message);
    }
View Full Code Here

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

     *
     * @deprecated You should use info or debug methods instead.
     */
    public static void note(String logName, String message)
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.info(logName, message);
    }
View Full Code Here

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

     */
    public void notice(String msg)
    {
        if (enabledLogging)
        {
            LoggingService logger=(LoggingService)TurbineServices
                .getInstance().getService(LoggingService.SERVICE_NAME);
            if (logger==null)
            {
                System.out.println("(!) NOTICE: "+msg);
                return;
            }
            logger.info(msg);
        }
        else
        {
            System.out.println("NOTICE: "+msg);
        }
View Full Code Here

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

     */
    public void error(Throwable t)
    {
        if (enabledLogging)
        {
            LoggingService logger =
                (LoggingService)getService(LoggingService.SERVICE_NAME);
            if (logger==null)
            {
                System.out.println("(!) ERROR: "+t.getMessage());
                return;
            }
            logger.error("",t);
        }
        else
        {
            System.out.println("ERROR: "+t.getMessage());
            t.printStackTrace();
View Full Code Here

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

     * Allows logging using a logging service instead of console
     * This method should be called after initialization of the logging service
     */
    private void enableLogging()
    {
        LoggingService logger=(LoggingService)getService(LoggingService.SERVICE_NAME);
        if (logger!=null)
        {
            logger.info("ServiceBroker: LoggingService enabled.");
            enabledLogging=true;
        }
    }
View Full Code Here

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

     * This method has been deprecated, attempts to shutdown logger service.
     * @deprecated The service should be shut down by the broker class only.
     */
    public static void destroy()
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.shutdown();
    }
View Full Code Here

Examples of org.auraframework.service.LoggingService

     * method should be templated and defined in the interface, because the same
     * thing exists in its apex counterpart.
     */
    public Object getValueFrom(Object obj) {
        try {
            LoggingService loggingService = Aura.getLoggingService();
            loggingService.incrementNum("JavaCallCount");
            return getter.invoke(obj);
        } catch (IllegalArgumentException e) {
            throw new AuraRuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new AuraRuntimeException(e);
View Full Code Here

Examples of org.jbpm.logging.LoggingService

public class SaveLogsOperation implements SaveOperation {

  private static final long serialVersionUID = 1L;

  public void save(ProcessInstance processInstance, JbpmContext jbpmContext) {
    LoggingService loggingService = jbpmContext.getServices().getLoggingService();

    if (loggingService != null) {
      LoggingInstance loggingInstance = processInstance.getLoggingInstance();
      log.debug("posting logs to logging service.");
      for (ProcessLog processLog : loggingInstance.getLogs()) {
        loggingService.log(processLog);
      }
    }
    else {
      log.debug("ignoring logs.  no logging service available.");
    }
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.