Author Message
IanPaulmer
Joined: Aug 28, 2014
Messages: 23
Offline
Could you please show me simple example command for java code how to write text to app. trace.log?
I would like to write something like "TRACEPOINT-1".

thank you !
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
In the UI you can drop a trace call flow item into any node. See attached. Also you can use in java:


LoggerUtil.writeTrace(mySession, ITraceInfo.TRACE_LEVEL_INFO, "your message ");


public interface ITraceInfo {

/*
* Trace levels.
*/
public static int TRACE_LEVEL_DEBUG = 1;
public static int TRACE_LEVEL_INFO = 2;
public static int TRACE_LEVEL_WARN = 3;
public static int TRACE_LEVEL_ERROR = 4;
public static int TRACE_LEVEL_FATAL = 5;




where


package com.avaya.sce.runtimecommon;


/**
* Utility class to make the logging check quicker to type.
*/
public class LoggerUtil {
public static void writeTrace(IRuntimeSession session, int level, String msg) {
if (session == null)
return;
if (session.isTraceEnabled()) {
session.getTraceOutput().writeln(level, msg);
}
}
}
  • [Thumb - Capture.PNG]
[Disk] Download
Go to:   
Mobile view