Questions tagged [xmlconfigurator]
8 questions
29
votes
1 answer
log4net initialisation
I've looked hard for duplicates but have to ask the following, no matter how basic it may seem, to get it clear once and for all!
In a fresh Console app using log4net version 1.2.10.0 on VS28KSP1 on 64 bit W7, I have the following code:-
using…

Ruben Bartelink
- 59,778
- 26
- 187
- 249
7
votes
1 answer
Log4Net EventLogAppender Not Logging To Custom Event Log
Added an EventLogAppender as follows:
…

rhessinger
- 173
- 2
- 8
6
votes
2 answers
How to set log4net LockingModel programmatically after loading with XmlConfigurator?
I have this XML log4net configuration:

Nicolas Raoul
- 58,567
- 58
- 222
- 373
3
votes
3 answers
Serializing Java objects to xml and back (XML configuration)
I am looking for a XML serialization framework which has an option for a XML configuration instead of annotation to name classes and fields.
I looked at Simple and XStream but I didn't find a method to do it. I suppose I could use Spring IOC and…

Trick
- 3,779
- 12
- 49
- 76
2
votes
1 answer
How to write entries to Windows Event Viewer by log4net in WPF?
I have read this article. and this answer1SO, answer2SO, answer3SO.
What I've done so far:
1. Declared in the last line of AssemblyInfo.cs :
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
2. Written in app.config

StepUp
- 36,391
- 15
- 88
- 148
2
votes
1 answer
setting up XmlConfigurator Common Logging with log4net
I have been looking at creating a common logging library for the company I work for, based on a blog by Daniel Cazzulino. so we can switch one out for another without to much disruption.
The first library I looked to use is log4net, but I cannot…

Luke Duddridge
- 4,285
- 35
- 50
1
vote
1 answer
Error Configuring Log4Net EventLogAppender
I have a console application using Log4Net 1.2.10.0. I added an EventLogAppender in my Log4Net config:
…

rhessinger
- 173
- 2
- 8
1
vote
3 answers
The type or namespace name 'XmlConfigurator' could not be found
The type or namespace name 'XmlConfigurator' could not be found (are you missing a using directive or an assembly reference?)
Am I missing a namespace???

user478636
- 3,304
- 15
- 49
- 76