G
Guest
Hi All,
I am facing one problem. I have one DLL called LogManagement which has
ability to write to ExceptionLog and EventLog File. Both are separate file
locate in Logs Diectory. I have two windows service application and one
windows application which call the LogManagement DLL to write to log file.
I made the object of LogManagement as Singleton but when I run single
application, It runs perfect, but when I run
multiple application then It raises error. I can't debug because It's a
windows service but I know the
problem is EACH application is creating its own Object, I don't want to
create the object each time Because when I am initializing object I am also
checking that both the file exist or not ? If does not exist then create a
new file on same location. When file created one windows service starting
using the file to write event logs.
I am facing one problem. I have one DLL called LogManagement which has
ability to write to ExceptionLog and EventLog File. Both are separate file
locate in Logs Diectory. I have two windows service application and one
windows application which call the LogManagement DLL to write to log file.
I made the object of LogManagement as Singleton but when I run single
application, It runs perfect, but when I run
multiple application then It raises error. I can't debug because It's a
windows service but I know the
problem is EACH application is creating its own Object, I don't want to
create the object each time Because when I am initializing object I am also
checking that both the file exist or not ? If does not exist then create a
new file on same location. When file created one windows service starting
using the file to write event logs.