Re: Application Logging Block without config file
- From: Severin Meyer <SeverinMeyer@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 2 Sep 2007 14:40:00 -0700
Hi Steve
I knew about the blog, but it doesn't solve the problem. The schema to save
the configuration is still the same.
But many thanks for your answer, I really appriciate it.
Severin
"Stevanich" wrote:
Severin,.
Tom Hollander explains a couple different methods for storing the Enterprise
Library configuration. You will still need a *.config file in some form
though.
http://blogs.msdn.com/tomholl/archive/2006/04/02/entlib2externalconfig.aspx
Hope this helps,
Steve
"Severin Meyer" <SeverinMeyer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B6D25986-9280-448A-B13A-CA4C3DC73C30@xxxxxxxxxxxxxxxx
This meens, that I don't want to use the normal .config files provided by
the
.net Framework.
Sometimes my settings data is persisted in the registry, datbase, or else
where.
So I need to get a procedure to set the configuration of the Logger
directly
throug the code.
I have found a way to configure an instance of a LogWriter to do what I
want, just throug code. But if I'm Logging via the static "Logger" class,
there is an exception, that nothing was configured.
I think, that the Logger is using a predefined LogWriter, but I was unable
to initialize it.
Hope this clarifys my problem a bit.
Severin
"Stevanich" wrote:
Severin,
Could you explain what you mean by 'The configuration for my application
is
stored elsewhere'?
Thanks,
Steve - dotneticated.com
"Severin Meyer" <SeverinMeyer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CE70DBE0-A5B0-482B-8092-5E89781B293E@xxxxxxxxxxxxxxxx
I'm searching for a simple logging library and want to give the
Enterprise
Library a try.
The problem I'm delaing with at first is to configure this bulding
block.
The defaut way is to do this in the config-file. The problem is, that I
don't
want to use such a configuration file. The configuration for my
application
is stored else where.
My approaoch is to configure the logger solely with code in c#. So I
will
be
free where and in which format I store my settings.
Unfortunatly I have not found any sample to do this. The only hint I
have
found is that it should be possible even without config file.
Perhaps there is someone out there who can direct me to a usable
sample.
Regards,
Severin
- References:
- Re: Application Logging Block without config file
- From: Stevanich
- Re: Application Logging Block without config file
- From: Stevanich
- Re: Application Logging Block without config file
- Prev by Date: Re: Application Logging Block without config file
- Next by Date: enterprise library 2.0 logging block - trace viewing
- Previous by thread: Re: Application Logging Block without config file
- Next by thread: enterprise library 2.0 logging block - trace viewing
- Index(es):
Relevant Pages
|
Loading