There is no support for sharing a trace listener in the built in trace listeners, not even from the same application. This behavior is defined by the
.NET Framework's TextWriterTraceListener: "If an attempt is made to write to a file that is in use or unavailable, the file name is automatically prefixed by a GUID."
How can we log to a same log file from two different .Net applications (assume console application and windows service application).
we are using enterprise library 3.1 for logging.
We tried passing the log file path from the console application to the service on start event as one of the arguments to the service. Since the log file is opened by console application and when the service application tries to log information, a new file with
the guid is created.