rev 1792 - trunk/siesta/t

[prev] [thread] [next] [lurker] [Date index for 2005/01/27]

From: richardc
Subject: rev 1792 - trunk/siesta/t
Date: 00:33 on 27 Jan 2005
Author: richardc
Date: 2005-01-27 00:33:19 +0000 (Thu, 27 Jan 2005)
New Revision: 1792

Added:
   trunk/siesta/t/siesta.conf
Removed:
   trunk/siesta/t/log.conf
Modified:
   trunk/siesta/t/config
Log:
It's possible to get at the Log4perl config data, and look, it does variable
expansion for us:

perl -MLog::Log4perl -MYAML -e 'Log::Log4perl::init( "t/siesta.conf" ); print Dump $Log::Log4perl::Config::OLD_CONFIG;'

we shall have to find out if the OLD_CONFIG thing is up for grabs and/or a 
stable api



Modified: trunk/siesta/t/config
===================================================================
--- trunk/siesta/t/config	2005-01-26 23:51:32 UTC (rev 1791)
+++ trunk/siesta/t/config	2005-01-27 00:33:19 UTC (rev 1792)
@@ -1,4 +1,4 @@
 messages = messages
-log_config = t/log.conf
+log_config = t/siesta.conf
 archive = t/root/archive
 root   = t/root

Deleted: trunk/siesta/t/log.conf
===================================================================
--- trunk/siesta/t/log.conf	2005-01-26 23:51:32 UTC (rev 1791)
+++ trunk/siesta/t/log.conf	2005-01-27 00:33:19 UTC (rev 1792)
@@ -1,6 +0,0 @@
-log4perl.rootLogger = DEBUG, FILE
-
-log4perl.appender.FILE          = Log::Log4perl::Appender::File
-log4perl.appender.FILE.filename = siesta.log
-log4perl.appender.FILE.layout   = Log::Log4perl::Layout::PatternLayout
-log4perl.appender.FILE.layout.ConversionPattern = [%d] %P %p %M %m%n

Copied: trunk/siesta/t/siesta.conf (from rev 1787, trunk/siesta/t/log.conf)
===================================================================
--- trunk/siesta/t/log.conf	2005-01-26 22:18:05 UTC (rev 1787)
+++ trunk/siesta/t/siesta.conf	2005-01-27 00:33:19 UTC (rev 1792)
@@ -0,0 +1,9 @@
+siesta.root = t/root
+
+log4perl.rootLogger = DEBUG, FILE
+
+log4perl.appender.FILE          = Log::Log4perl::Appender::File
+log4perl.appender.FILE.filename = ${siesta.root}/siesta.log
+log4perl.appender.FILE.layout   = Log::Log4perl::Layout::PatternLayout
+log4perl.appender.FILE.layout.ConversionPattern = [%d] %P %p %M %m%n
+

Generated at 11:00 on 27 Jan 2005 by mariachi 0.52