org.wso2.carbon.utils.logging
Class TenantAwareLoggingEvent

java.lang.Object
  extended by org.apache.log4j.spi.LoggingEvent
      extended by org.wso2.carbon.utils.logging.TenantAwareLoggingEvent
All Implemented Interfaces:
Serializable

public class TenantAwareLoggingEvent
extends org.apache.log4j.spi.LoggingEvent

This class is used to store information regarding a LogEvent along with tenant information.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.log4j.spi.LoggingEvent
categoryName, fqnOfCategoryClass, level, timeStamp
 
Constructor Summary
TenantAwareLoggingEvent(String fqnOfCategoryClass, org.apache.log4j.Category logger, long timeStamp, org.apache.log4j.Priority level, Object message, Throwable throwable)
           
 
Method Summary
 String getServiceName()
           
 String getTenantId()
           
 void setServiceName(String serviceName)
           
 void setTenantId(String tenantId)
           
 
Methods inherited from class org.apache.log4j.spi.LoggingEvent
getFQNOfLoggerClass, getLevel, getLocationInformation, getLogger, getLoggerName, getMDC, getMDCCopy, getMessage, getNDC, getProperties, getProperty, getPropertyKeySet, getRenderedMessage, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep, getTimeStamp, locationInformationExists, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TenantAwareLoggingEvent

public TenantAwareLoggingEvent(String fqnOfCategoryClass,
                               org.apache.log4j.Category logger,
                               long timeStamp,
                               org.apache.log4j.Priority level,
                               Object message,
                               Throwable throwable)
Method Detail

getTenantId

public String getTenantId()

setTenantId

public void setTenantId(String tenantId)

getServiceName

public String getServiceName()

setServiceName

public void setServiceName(String serviceName)


Copyright © 2014 WSO2 Inc. All rights reserved.