Method2 WriteLogs (
Call Connect ()
If flag=True
Write logs into Oracle Database
Else
Write logs into Text File
The problem with above procedure is, I'm using “Method2 WriteLogs” more than 2000 locations in my program. So each time it's opening & closing the DB connections. It's slows the system.
I want to use Method2 without using the Method1
is there any solution in MS Enterprise Library to write logs without opening & closing the DB connections, so many times?
vjxp
Member
38 Points
117 Posts
how to write logs without opening and closing the Oracle DB Connections?
Nov 02, 2010 04:12 PM|LINK
I am developing logging application with asp.net & vb.net & Oracle
At present I'm using this mechanism to write logs
Method1 Connect (
Try{
Conn.open ()
Flag=True}
Catch{
Flag=False}
Finally{
Close () & Dispose ()
Method2 WriteLogs (
Call Connect ()
If flag=True
Write logs into Oracle Database
Else
Write logs into Text File
The problem with above procedure is, I'm using “Method2 WriteLogs” more than 2000 locations in my program. So each time it's opening & closing the DB connections. It's slows the system.
I want to use Method2 without using the Method1
is there any solution in MS Enterprise Library to write logs without opening & closing the DB connections, so many times?
Please advice me
Logging Enterprise Library