If your file has suffix .config, you must use configuration section
handler. See log4net doc and bellow:
configuration
configSections
section name=log4net
type=log4net.Config.Log4NetConfigurationSectionHandler, log4net /
/configSections
log4net
/log4net
-
Prostredi: C#,
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]);
I'm trying append my log entries to the test results from a unit test in
VSTS. Generally, anytime you call Console.WriteLine from within your unit
test, the results are written to the console. So, I figured if you use the
appender I have below, the log results would show up there as well. I'm
Sorry, let me rephrase below...
SeanB wrote:
I'm trying append my log entries to the test results from a unit test in
VSTS. Generally, anytime you call Console.WriteLine from within your unit
test, the text is included in the test results. So, I figured if you use
the appender I have