Separate config files for BitFactory.Logging
The object guy has a very nice logging framework for .Net. A very common scenario is to have different logging configurations for different environments (Development/Test/Acceptance/Production). To support this, the object guy has introduced the option to specify the name of the machine in the logging configuration. In my opinion this is not an ideal solution. A few drawbacks are:
A better solution is to separate the configuration from the web.config file in a separate config file. Luckily this supported out of the box by the .Net framework using the configSource attribute.
To accomplice this create a new file weblog.config containing the information of the log configuration in the web.config. (use .config for your extension and not xml, to prevent other people opening your configuration file)
<?xml version="1.0" encoding="utf-8" ?>
<BitFactory.Logging name="global" application="Developerslog.WebTest" isAsynchronous="true" xmlns="http://BitFactory.Logging">
<rollingDateFileLoggers>
<rollingDateFileLogger formattedFileName="C:\log\MyApp_{timestamp:yyyyMMdd}.log" name="file" formatString="{application} - {severity} - {timestamp:yyyy-MM-dd HH:mm:ss.fff} - {message}"/>
</rollingDateFileLoggers>
</BitFactory.Logging>
Now change the BitFactory.Logging section to :
<BitFactory.Logging configSource="WebLog.config" />
Run your application and see the logging information appear as you used to.
Java development is some while ago for me, but just got a new