2009 10:24
> To: [email protected]
> Subject: Log4Net Repository
>
>
> Hi,
>
> I'm new to Log4Net having stumbled across it by accident. I've managed to
> get a single .Net assembly logging to a file using the
> RollingFileAppender.
> This wor
[email protected]]
Sent: 02 September 2009 09:39
To: 'Log4NET User'
Subject: RE: Log4Net Repository
Hi Mattyboy,
as long as you use the same logger in all your assemblies, everything
will
be logged in the same file:
ILog logger = LogManager.GetLogger("ClaymoreLogger");
logger.Inf
utions.com]
Sent: Mittwoch, 2. September 2009 10:24
To: [email protected]
Subject: Log4Net Repository
Hi,
I'm new to Log4Net having stumbled across it by accident. I've managed to
get a single .Net assembly logging to a file using the RollingFileAppender.
This works fin
g file. Having looked at the
documentation I think I should be using a Repository to do this but I can't
find any decent examples of how this is done.
Can anyone supply me with any examples/urls etc. that would point me in the
right direction?
Many Thanks
Here's the config. file I
I had to call XmlConfigurator.Configure(); within the global.asax file for it
to work due to StructureMap. Didn't have the problem with Unity.
--
View this message in context:
http://www.nabble.com/Logging-issue%2C-Repository-count-is-1-tp20774508p20782493.html
Sent from the Log4net -
ogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);'
from the Unity project the LogManager Repository count is 0.
When I call the same line from the StructureMap project unit test the
repository count is also 0, but from the Structure Map web the repository
count is 1 with 59 values. I'
Hi!
I doesn't get the log4net Repository working. Given two minimal C#
projects one console exe LoggTest.Main.exe and a library
LoggTest.Library.dll both having its own App.config file. Both
repositories is configured to log in different logfiles. I tried a
number of combinations as rem
[email protected]
> Subject: DefaultDomain / Repository Question
>
> Hi,
>
> What would be considered the equal of the following line in 1.2.9?
>
> [assembly: log4net.Config.Domain(UseDefaultDomain=true)]
>
> Thanks,
> Mladen
>
>
Hi,
What would be considered the equal of the following line in 1.2.9?
[assembly: log4net.Config.Domain(UseDefaultDomain=true)]
Thanks,
Mladen
Rich,
There is a one-to-one mapping between domains (which are just names) and
repositories. However domains can also be aliased which means that multiple
domains may point to the same repository.
Nicko
> -Original Message-
> From: Denis, Rich [mailto:[EMAIL PROTECTED]
> Sent
Nicko,
Getting back to a question that I had long ago Concerning
Repositories and "Domains", is there only one repository per domain? Your
email says if I want to create a repository I add a new domain attribute.
This leads me to believe that there is a one to one mapping b
nd using a
> custom repository just wanting to make sure I understand the
> capabilities of log4net).
This is absolutely what you should do. All I was saying is that it is not
possible to force all the loggers from a component to exist under a known
root. E.g. If a component uses loggers like "
oo.component1, com.foo.database etc? (this is
not me trying to find a way around using a custom repository just wanting to
make sure I understand the capabilities of log4net).
Ok so now I am sold on using named repositories. What do I do next. Again
from the repositories section I gather that I
Denis,
> I may asking a few of these over the next week but the first
> one that I have is on the loggerRepository.
The logger repository organises the loggers. Each logger has a name and can
be retrieved by name from the repository. It is up to the repository
implementation to define h
what it is. Is it just a collection for the loggers? After
reading the repository section, I see that it is an advanced feature, but I am
puzzled by the following section :
“This can be very useful to
component developers that wish to use log4net for their components but do not want to require
15 matches
Mail list logo