Package co.cask.tigon.logging

Examples of co.cask.tigon.logging.LoggingContext$SystemTag


    // Hack hack hack: time constraints
    if (logWriter == null) {
      return;
    }

    LoggingContext context = LoggingContextAccessor.getLoggingContext();
    // Hack hack hack: time constraints
    if (context == null) {
      return;
    }

    String[] traceLines = null;
    if (event.getThrowableProxy() != null) {
      final StackTraceElementProxy[] exc
        = event.getThrowableProxy().getStackTraceElementProxyArray();
      if (exc != null) {
        traceLines = new String[exc.length];
        for (int i = 0; i < traceLines.length; i++) {
          traceLines[i] = exc[i].toString();
        }
      }
    }

    String msg = format.format(this.getLayout().doLayout(event),
                                         traceLines, context, null);

    logWriter.write(context.getLogPartition(), event.getLevel().toString(), msg);
  }
View Full Code Here

TOP

Related Classes of co.cask.tigon.logging.LoggingContext$SystemTag

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.