Class LogContext


  • public class LogContext
    extends Object
    Contains log information about a service to be invoked.
    A service could be: a web-rpc service method, a custom web service, an external redirect callback (custom operation) or an inbound sms.
    The information contained in this context will be logged though the LoggingHandler's implementation.
    Note: if any of ServiceLogParams or LogConfiguration are null it means a log entry must not be generated, all methods take this into account being safe to call any of them even in that case. Example: if ServiceLogParams is null you can call the setError(Throwable) method directly (it will be a noop).
    See Also:
    InvokerHandler#getLogContext(org.cyclos.impl.access.SessionData, String, String, Object...)