asp.net - mod_mono: log4net won't log anything -
i have working asp.net mvc application running under mod_mono. i've set logging:
xmlconfigurator.configureandwatch(new fileinfo("log4net.config"));
this works fine under monodevelop, apache deployment, don't see logfiles. created own appender , installed in code check wasn't problem appenders being misconfigured.
what's going on?
under mod_mono, application lives wherever configured it, runs /
. path provided log4net config file relative that, not application root.
you can application's root directory server.path
:
var configfile = path.combine(server.path("~"), "log4net.config"); xmlconfigurator.configureandwatch(new fileinfo(configfile));
Comments
Post a Comment