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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -