Hi,

Can we configure the logging format?

Currently we are logging in the format like below;

TID: [0] [STRATOS] [2014-10-11 06:39:05,722]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  Running minimum rule:
[kub-cluster] KubGrp1 [cluster] myphp.php.domain
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,723]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [min-check]  [cluster] :
myphp.php.domain [Replicas] nonTerminated : 2
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,723]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [min-check]  [cluster] :
myphp.php.domain [Replicas] minReplicas : 2
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,723]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  Running obsolete containers
rule [kub-cluster] : KubGrp1 [cluster] : myphp.php.domain
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,723]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [obsolete-check] [cluster]
: myphp.php.domain [Replicas] obsoleteReplicas : 0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,723]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  Running scaling rule
[kub-cluster] : KubGrp1 [cluster] : myphp.php.domain
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,724]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [Replicas] nonTerminated : 2
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,724]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [Replicas] minReplicas : 2
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,725]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [Replicas] maxReplicas : 20
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,725]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [RequestInFlight] resetted ? : false
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,725]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [RequestInFlight] predicted value : 0.0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,726]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [RequestInFlight] upper limit : 80.0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,726]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [RequestInFlight] lower limit : 5.0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,726]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [MemoryConsumption] resetted ? : true
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,727]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [MemoryConsumption] predicted value : 29.142266099066546
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,727]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [MemoryConsumption] upper limit : 80.0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,727]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [MemoryConsumption] lower limit : 15.0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,728]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [LoadAverage] resetted ? : true
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,728]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [LoadAverage] predicted value : 2.70735374011565
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,729]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [LoadAverage] upper limit : 180.0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,729]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain [LoadAverage] lower limit : 100.0
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,729]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain scale-up action : false
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,730]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling]  [cluster] :
myphp.php.domain scale-down action : false
{org.apache.stratos.autoscaler.rule.RuleLog}
TID: [0] [STRATOS] [2014-10-11 06:39:05,731]  INFO
{org.apache.stratos.autoscaler.rule.RuleLog} -  [scaling] No decision made
to either scale up or down ...  {org.apache.stratos.autoscaler.rule.RuleLog}


How can I remove the TID part and Stratos part when logging?

Thanks.


-- 
Rajkumar Rajaratnam
Software Engineer | WSO2, Inc.
Mobile +94777568639 | +94783498120

Reply via email to