Log in webapp

Topics: Developer Forum, Project Management Forum, User Forum
Feb 11, 2010 at 5:50 PM


which the better way to configure the log in my webapp in order to dump all SQL sentences? I have tried TextFileLogRecorder but i can't get any file, where could i configure the file where sentences should be dumped?



Juan Pedro Rubio


Feb 12, 2010 at 9:37 AM

In Lephone.Settings section:

<add key="SqlLogRecorder" value="Lephone.Util.Logging.TextFileLogRecorder, Lephone.Util"/>

Will save all sql sentences to text file. And the following will save them to database:

<add key="SqlLogRecorder" value="Lephone.Data.Logging.DatabaseLogRecorder, Lephone.Data"/>