Opened 14 years ago
Last modified 13 years ago
#1517 closed enhancement
Switch Tracing from log4net to Diagnostics.Trace — at Initial Version
Reported by: | ascheibe | Owned by: | ascheibe |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.5 |
Component: | Tracing | Version: | 3.3.5 |
Keywords: | Cc: |
Description
Hive sandboxing executes code in an AppDomain with restricted privileges. All code that is executed in such an environment is partially trusted. This makes it possible to restrict permissions and define what code is allowed to be executed. log4net contains code that needs fully trusted callers. Because the code in a sandbox is executed partially trusted, log4net can't be used with Hive sandboxing. System.Diagnostics.Trace can be used with Hive sandboxing as it requires no fully trusted caller. Therefore the Logger class in Tracing will be rewritten to use Diagnostics.Trace. Configuration of the Tracing is done in app.config under the <system.diagnostics> Tag. To include this section in HeuristicLab's app.config, ConfigMerger has to be changed to also merge the <system.diagnostics> section. The log4net plugin will be removed from HeuristicLab as it is only used by HeuristicLab.Tracing.