logging - WSO2 Change Log File Location -


in wso2 log files in folder wso2_home/repository/logs. need put logs in separate directory outside of wso2_home.

typically log files wso2carbon.log, audit.log, ...

where can location of these wso2 log files changed?

you need go wso2_home/repository/conf/ , need edit log4j.properties file wso2carbon log file need edit "carbon_logfile" , give full url "log4j.appender.carbon_logfile.fil" property

log4j.appender.carbon_logfile.file=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log 

for audit log need edit audit_logfile appender , change "log4j.appender.audit_logfile.file" property

log4j.appender.audit_logfile.file=${carbon.home}/repository/logs/audit.log 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -