Changeset - 36056deeb90f
[Not reviewed]
0 4 0
HanzZ - 14 years ago 2011-09-08 18:06:49
hanzz.k@gmail.com
Added logging configs
4 files changed with 16 insertions and 4 deletions:
0 comments (0 inline, 0 general)
spectrum/src/CMakeLists.txt
Show inline comments
 
@@ -15,3 +15,15 @@ INSTALL(FILES
 
	RENAME spectrum.cfg.example
 
	DESTINATION /etc/spectrum2
 
	)
 
 
INSTALL(FILES
 
	backend-logging.cfg
 
	DESTINATION /etc/spectrum2
 
	)
 
 
INSTALL(FILES
 
	logging.cfg
 
	DESTINATION /etc/spectrum2
 
	)
 
 
spectrum/src/backend-logging.cfg
Show inline comments
 
log4j.rootLogger=debug, R
 

	
 
log4j.appender.R=org.apache.log4j.RollingFileAppender
 
log4j.appender.R.File=backend-${pid}.log
 
log4j.appender.R.File=/var/log/spectrum2/backends/backend-${pid}.log
 

	
 
log4j.appender.R.MaxFileSize=10000KB
 
# Keep one backup file
spectrum/src/logging.cfg
Show inline comments
 
log4j.rootLogger=debug, R
 

	
 
log4j.appender.R=org.apache.log4j.RollingFileAppender
 
log4j.appender.R.File=spectrum2.log
 
log4j.appender.R.File=/var/log/spectrum2/spectrum2.log
 

	
 
log4j.appender.R.MaxFileSize=10000KB
 
# Keep one backup file
spectrum/src/sample2.cfg
Show inline comments
 
@@ -58,10 +58,10 @@ type=xmpp
 

	
 
[logging]
 
# log4cxx/log4j logging configuration file in ini format used for main spectrum2 instance.
 
#config = logging.cfg 
 
config = /etc/spectrum2/logging.cfg 
 

	
 
# log4cxx/log4j logging configuration file in ini format used for backends.
 
#backend_config=backend_logging.cfg # log4cxx/log4j logging configuration file for backends
 
backend_config = /etc/spectrum2/backend_logging.cfg # log4cxx/log4j logging configuration file for backends
 

	
 
[database]
 
# Database backend type
0 comments (0 inline, 0 general)