Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1470 for trunk/sources


Ignore:
Timestamp:
03/31/09 15:25:17 (16 years ago)
Author:
epitzer
Message:

New default logging configuration includes AppDomain name, remove " AppDomain" from AppDomain names, and add pre-build event to Tracing plugin. (#524)

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs

    r1199 r1470  
    138138      AppDomain applicationDomain = null;
    139139      try {
    140         applicationDomain = CreateAndInitAppDomain(appInfo.Name + " AppDomain");
     140        applicationDomain = CreateAndInitAppDomain(appInfo.Name);
    141141        Runner remoteRunner = (Runner)applicationDomain.CreateInstanceAndUnwrap(typeof(Runner).Assembly.GetName().Name, typeof(Runner).FullName);
    142142        remoteRunner.Run(appInfo);
  • trunk/sources/HeuristicLab.Tracing/HeuristicLab.Tracing.csproj

    r1467 r1470  
    8989  </Target>
    9090  -->
     91  <PropertyGroup>
     92    <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
     93set ProjectDir=$(ProjectDir)
     94set SolutionDir=$(SolutionDir)
     95set Outdir=$(Outdir)
     96
     97call PreBuildEvent.cmd</PreBuildEvent>
     98  </PropertyGroup>
    9199</Project>
  • trunk/sources/HeuristicLab.Tracing/HeuristicLab.log4net.xml

    r1467 r1470  
    1 <log4net>   
    2   <appender name="DefaultAppender" type="log4net.Appender.RollingFileAppender">
    3     <file value="HeuristicLab.log" />   
     1<log4net>
     2 
     3  <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
     4    <file value="HeuristicLab.log" />
    45    <appendToFile value="true" />
    56    <rollingStyle value="Size" />
     
    78    <maximumFileSize value="100KB" />
    89    <staticLogFileName value="true" />
     10    <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
    911    <layout type="log4net.Layout.PatternLayout">
    10       <conversionPattern value="%-4timestamp [%thread] %-5level %logger %ndc - %message%newline" />
     12      <conversionPattern value="%-4timestamp [%appdomain/%thread] %-5level %logger %ndc - %message%newline" />
    1113    </layout>
    12   </appender> 
     14  </appender>
     15 
     16  <appender name="BufferingForwardingAppender" type="log4net.Appender.BufferingForwardingAppender" >
     17    <bufferSize value="128" />
     18    <lossy value="true" />
     19    <evaluator type="log4net.Core.LevelEvaluator">
     20        <threshold value="WARN"/>
     21    </evaluator>
     22    <appender-ref ref="RollingFileAppender" />
     23  </appender>
     24 
    1325  <root>
    14     <level value="WARN" />
    15     <appender-ref ref="DefaultAppender" />
     26    <level value="INFO" />
     27    <appender-ref ref="BufferingForwardingAppender" />
     28    <appender-ref ref="RollingFileAppender" />
    1629  </root>
     30 
    1731</log4net>
  • trunk/sources/HeuristicLab.Tracing/Logger.cs

    r1467 r1470  
    2323      XmlConfigurator.ConfigureAndWatch(
    2424        new FileInfo(Settings.Default.log4netConfigFile));
    25       Info("Logging started and configured");
     25      Info("logging initialized");
    2626    }
    2727
Note: See TracChangeset for help on using the changeset viewer.