[jifty-devel] Having some problems with the dispatcher

Jesse Vincent jesse at bestpractical.com
Thu Mar 9 18:29:33 EST 2006




On Thu, Mar 09, 2006 at 10:14:37PM +1100, Bart Bunting wrote:
> Hi,
> 
> Unfortunately the same result.  What else can I do to debug this? Any ideas?
> 
> Do I actually need an autohandler? From reading changelogs I thought that
> wasn't required any more.  I'm not using one ATM.

They shouldn't be required anymore.

I think the right answer is to turn up the verbosity of logging. This
means you want to define a 

framework:
	LogConfig: etc/logger.conf

in your siteconfig. 

Then try a file like the one I'm attaching, but turn up the verbosity to
"DEBUG" for everything
-------------- next part --------------
<<<<<<< .mine
log4perl.rootLogger=INFO, ShowInfo, LogToFile, ErrorsToFile
=======
log4perl.rootLogger=ERROR, ShowInfo, LogToFile, ErrorsToFile
>>>>>>> .r3012

# Disable debugging output for certain modules; comment these lines to have them
# show up again

log4perl.logger.Jifty::MasonInterp = INFO, ShowInfo, LogToFile

# If you want to make DEBUG level for Jifty::Some::Module show up on the screen
# (and not just the log file), add the
# following line:
#log4perl.logger.Jifty::Some::Module=DEBUG, ShowCategoryDebug

log4perl.appender.ShowInfo=Log::Log4perl::Appender::ScreenColoredLevels
log4perl.appender.ShowInfo.layout=Log::Log4perl::Layout::PatternLayout
log4perl.appender.ShowInfo.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n
#log4perl.appender.ShowInfo.Threshold=INFO
log4perl.appender.LogToFile.Threshold=ERROR

log4perl.appender.LogToFile=Log::Log4perl::Appender::File
log4perl.appender.LogToFile.filename= sub { Jifty::Util->absolute_path("log/server.log") }
log4perl.appender.LogToFile.mode=append
log4perl.appender.LogToFile.layout=Log::Log4perl::Layout::PatternLayout
log4perl.appender.LogToFile.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n

log4perl.appender.ErrorsToFile=Log::Log4perl::Appender::File
log4perl.appender.ErrorsToFile.filename= sub { Jifty::Util->absolute_path("log/error.log") }
log4perl.appender.ErrorsToFile.mode=append
log4perl.appender.ErrorsToFile.layout=Log::Log4perl::Layout::PatternLayout
log4perl.appender.ErrorsToFile.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n
log4perl.appender.ErrorsToFile.Threshold=WARN

log4perl.appender.ShowCategoryDebug=Log::Log4perl::Appender::ScreenColoredLevels
log4perl.appender.ShowCategoryDebug.layout=Log::Log4perl::Layout::PatternLayout
log4perl.appender.ShowCategoryDebug.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n



More information about the jifty-devel mailing list