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.
WCFASP.NET

Avatar of undefined
Last Comment
satmisha
Avatar of satmisha
satmisha
Flag of India image

ASKER

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of satmisha
satmisha
Flag of India image

ASKER

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 ?
Avatar of ste5an
ste5an
Flag of Germany image

It's in the .NET framawork, e.g.
Task.Factory.StartNew(() => LogMessage(message)); 

Open in new window

Avatar of satmisha
satmisha
Flag of India image

ASKER

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?
Avatar of satmisha
satmisha
Flag of India image

ASKER

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.
Avatar of satmisha
satmisha
Flag of India image

ASKER

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..?
Avatar of satmisha
satmisha
Flag of India image

ASKER

Thanks Stfan
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo