| | |
| | | */ |
| | | public Map<String,TraceSettings> getMethodSettings(String className) |
| | | { |
| | | return new HashMap<String, TraceSettings>(); |
| | | if(methodTraceSettings == null) |
| | | { |
| | | return null; |
| | | } |
| | | else |
| | | { |
| | | return methodTraceSettings.get(className); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param args The parameters provided to the |
| | | * constructor. |
| | | * @param stackTrace The stack trace at the time the |
| | | * constructor is executed or null if its |
| | | * not available. |
| | | */ |
| | | public abstract void traceConstructor(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | Object[] args); |
| | | Object[] args, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param obj The object instance on which the method |
| | | * has been invoked. |
| | | * @param args The parameters provided to the method. |
| | | * @param stackTrace The stack trace at the time the method |
| | | * is executed or null if its not available. |
| | | */ |
| | | public abstract void traceNonStaticMethodEntry(LogLevel level, |
| | | public abstract void traceMethodEntry(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | Object obj, |
| | | Object[] args); |
| | | Object[] args, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param signature The method signature. |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param args The parameters provided to the method. |
| | | * @param stackTrace The stack trace at the time the method |
| | | * is executed or null if its not available. |
| | | */ |
| | | public abstract void traceStaticMethodEntry(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | Object[] args); |
| | | Object[] args, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param signature The method signature. |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param ret The return value for the method. |
| | | * @param stackTrace The stack trace at the time the method |
| | | * is returned or null if its not available. |
| | | */ |
| | | public abstract void traceReturn(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | Object ret); |
| | | Object ret, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param signature The method signature. |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param msg The message to be logged. |
| | | * @param stackTrace The stack trace at the time the message |
| | | * is logged or null if its not available. |
| | | */ |
| | | public abstract void traceMessage(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | String msg); |
| | | String msg, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param signature The method signature. |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param ex The exception that was thrown. |
| | | * @param stackTrace The stack trace at the time the exception |
| | | * is thrown or null if its not available. |
| | | */ |
| | | public abstract void traceThrown(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | Throwable ex); |
| | | Throwable ex, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param signature The method signature. |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param ex The exception that was caught. |
| | | * @param stackTrace The stack trace at the time the exception |
| | | * is caught or null if its not available. |
| | | */ |
| | | public abstract void traceCaught(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | Throwable ex); |
| | | Throwable ex, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * {@code null}). |
| | | * @param key The key to dump. |
| | | * @param data The data to dump. |
| | | * @param stackTrace The stack trace at the time the access |
| | | * occured or null if its not available. |
| | | */ |
| | | public abstract void traceJEAccess(LogLevel level, |
| | | TraceSettings settings, |
| | |
| | | Database database, |
| | | Transaction txn, |
| | | DatabaseEntry key, |
| | | DatabaseEntry data); |
| | | DatabaseEntry data, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param signature The method signature. |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param data The data to dump. |
| | | * @param stackTrace The stack trace at the time the data |
| | | * is logged or null if its not available. |
| | | */ |
| | | public abstract void traceData(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | byte[] data); |
| | | byte[] data, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |
| | |
| | | * @param signature The method signature. |
| | | * @param sourceLocation The location of the method in the source. |
| | | * @param element The protocol element to dump. |
| | | * @param stackTrace The stack trace at the time the protocol |
| | | * element is logged or null if its not |
| | | * available. |
| | | */ |
| | | public abstract void traceProtocolElement(LogLevel level, |
| | | TraceSettings settings, |
| | | String signature, |
| | | String sourceLocation, |
| | | ProtocolElement element); |
| | | ProtocolElement element, |
| | | StackTraceElement[] stackTrace); |
| | | |
| | | |
| | | |