How are you "starting" the logging? We use log4net heavily in our apps,
and we always store the config in log4net.config, but we explicitly
start logging with something along the lines of:
string configFile =
Server.MapPath(ConfigurationManager.AppSettings["log4net-config-file"]);
log4net.Config.X
If your file has suffix .config, you must use configuration section
handler. See log4net doc and bellow:
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
-
Prostredi: C#, WinForms, VS2008 Pro, Vista business, CoreDuo, 4GB RAM
___