Enterprise library 2.0 logging block

N

nyhetsgrupper

Hi,
Is it possible to configure the enterprise library logging block to log
to different destinations based on priority. I can see it is possible
to do this based on category, but would it not be logical to do this on
priority also. If I have a category named "NORMAL" I maybe want
messages of this category with low priority to log to a file, but if it
has high priority I want it to send a mail.
 
U

User1013

Hi,
Is it possible to configure the enterprise library logging block to log
to different destinations based on priority. I can see it is possible
to do this based on category, but would it not be logical to do this on
priority also. If I have a category named "NORMAL" I maybe want
messages of this category with low priority to log to a file, but if it
has high priority I want it to send a mail.

Check out log4net if you find that the EntLib cannot do this.
 
C

Chris Dunaway

Hi,
Is it possible to configure the enterprise library logging block to log
to different destinations based on priority. I can see it is possible
to do this based on category, but would it not be logical to do this on
priority also. If I have a category named "NORMAL" I maybe want
messages of this category with low priority to log to a file, but if it
has high priority I want it to send a mail.

Well, since you can write your own log sinks for the EL, you can make
it do what ever you want. I don't know if it can do that "out of the
box", though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top