Make configured EntLib blocks start fast for Desktop apps
We write MS Office add-in. These should start fast beacause Office should start fast. We use EntLib. We found that configuration takes time to start. I hope for faster to start version of configuration for desktop. Details are here http://asdandrizzo-se.blogspot.com/2013/06/issues-using-entlib-and-unity.html
-
Dzmitry Lahoda commented
I know there is fluent api, and can instantiate unitlity classed directly. But i need configuration anyway. And come up with next weird approach for logging
<appSettings>
<add key="useSimplifiedConfig" value="true"/>
<!-- simplified log config for start up performance reasons, keep in sync with loggingConfiguration section-->
<add key="log.listener.fileName" value="%LOCALAPPDATA%\A B\C D\Logs\Framework.log" />
<add key="log.listener.maxDaysCount" value="2" />
<add key="log.listener.cleanAllFiles" value="true" />
<add key="log.formatter.template" value="Local Timestamp: {timestamp(local:MM/dd/yyyy HH:mm:ss.fffffff)}{newline}UTC Timestamp: {timestamp(MM/dd/yyyy HH:mm:ss.fffffff)}{newline}Severity: {severity}{newline}Process: {processId} {localProcessName}{newline}Thread: {win32ThreadId} {threadName}{newline}Domain Name: {localAppDomain}{newline}Message: {message}{newline}" />
<add key="log.categorySource.switchValue" value="All"/>
</appSettings>