Link to home
Start Free TrialLog in
Avatar of satmisha
satmishaFlag for India

asked on

Hybrid Logging in WCF application in file system as well as in database

Hi Experts, My requirement is to ensure hybrid logging in wcf application i.e. in file system as well as in db. Can you please suggest the best approach to go with ?

1. There should be parallel thread for logging in file system as well in the db.


Thanks in ton in advance.
Avatar of satmisha
satmisha
Flag of India image

ASKER

request to please suggest ..?
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks ste5an,  I am checking the EntLib but unable to find followings:

1. It helps to save the logging info in the database.
2. where it says that it could asynch/Parallel thread push the info to db.

M i missing something on this, can you please point out any link on above if possible ?
It's in the .NET framawork, e.g.
Task.Factory.StartNew(() => LogMessage(message)); 

Open in new window

Little confused:

Since I have to capture logging info in wcf on File system(limited info) and in database, so I have to use task parallel libraries to capture the logging information(input request, outgoing response)  and than push that to database whereas for file system Entprise lib will do for File system.

Means enterprise lib will not provide any mechanism to manage thread while pushing information to the database?
I guess I got it, correct me if I am wrong in my understanding:

1. Enter Lib are nothing but MS commanded way to write log info.
2. It would help to write rolling log file for wcf.
3. .Net framework has ability to write log asynchronous for both file system as well as database, it has nothing to do with Enterp Lib.

Looking forward to hearing from you.
Hi Expert
I need to do logging in file and in the database asynchronously. Can you please provide some link through which I can achieve the same..?
Thanks Stfan