You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by je...@apache.org on 2014/07/02 20:30:46 UTC

git commit: Fixed issue: wso2carbon.log filled up VM disk causing reboot

Repository: stratos
Updated Branches:
  refs/heads/4.0.0 67b8e7974 -> 6a45473b7


Fixed issue: wso2carbon.log filled up VM disk causing reboot


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/6a45473b
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/6a45473b
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/6a45473b

Branch: refs/heads/4.0.0
Commit: 6a45473b76f055400654818611adf97e03755331
Parents: 67b8e79
Author: Jeffrey Nguyen <je...@cisco.com>
Authored: Wed Jul 2 11:30:30 2014 -0700
Committer: Jeffrey Nguyen <je...@cisco.com>
Committed: Wed Jul 2 11:30:30 2014 -0700

----------------------------------------------------------------------
 .../stratos/modules/distribution/src/main/conf/log4j.properties  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/6a45473b/products/stratos/modules/distribution/src/main/conf/log4j.properties
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/log4j.properties b/products/stratos/modules/distribution/src/main/conf/log4j.properties
index a85d346..bb37679 100644
--- a/products/stratos/modules/distribution/src/main/conf/log4j.properties
+++ b/products/stratos/modules/distribution/src/main/conf/log4j.properties
@@ -113,7 +113,9 @@ log4j.appender.CARBON_MEMORY.threshold=DEBUG
 
 
 # CARBON_LOGFILE is set to be a DailyRollingFileAppender using a PatternLayout.
-log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.CARBON_LOGFILE=org.apache.log4j.RollingFileAppender
+log4j.appender.CARBON_LOGFILE.MaxFileSize=10000KB
+log4j.appender.CARBON_LOGFILE.MaxBackupIndex=10
 # Log file will be overridden by the configuration setting in the DB
 # This path should be relative to WSO2 Carbon Home
 log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log