Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enterprise library logging + dynamic connection string

I am using the enterprise library logging and exception handling.
Currently I am adding the connection string in the configuration file, and this means that it is static.
My problem is that the user may connect to a different database each time depending on his user name. Is there any way to change the connection string at run time?

like image 849
Ghyath Serhal Avatar asked Nov 26 '22 12:11

Ghyath Serhal


1 Answers

I created a CustomTraceListener

like image 113
Ghyath Serhal Avatar answered Dec 05 '22 13:12

Ghyath Serhal