Ignore:
Timestamp:
05/11/11 09:57:24 (10 years ago)
Author:
epitzer
Message:

completely remove unused user settings and use string formatting instead of concatenation (#1517)

Location:
trunk/sources/HeuristicLab.Tracing/3.3
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tracing/3.3/HeuristicLab.Tracing-3.3.csproj

    r6173 r6179  
    114114    <Compile Include="Logger.cs" />
    115115    <Compile Include="Properties\AssemblyInfo.cs" />
    116     <Compile Include="Properties\Settings.Designer.cs">
    117       <AutoGen>True</AutoGen>
    118       <DesignTimeSharedInput>True</DesignTimeSharedInput>
    119       <DependentUpon>Settings.settings</DependentUpon>
    120     </Compile>
    121116  </ItemGroup>
    122117  <ItemGroup>
     
    130125    <None Include="HeuristicLab.snk" />
    131126    <None Include="Properties\AssemblyInfo.frame" />
    132     <None Include="Properties\Settings.settings">
    133       <Generator>SettingsSingleFileGenerator</Generator>
    134       <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    135     </None>
    136127  </ItemGroup>
    137128  <ItemGroup>
  • trunk/sources/HeuristicLab.Tracing/3.3/Logger.cs

    r6173 r6179  
    3838    public static void Debug(object message) {
    3939      StackFrame frame = new StackFrame(1);
    40       Trace.TraceInformation(frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());
     40      Trace.TraceInformation("{0} - {1}", frame.GetMethod().DeclaringType, message);
    4141    }
    4242
     
    4747    public static void Info(object message) {
    4848      StackFrame frame = new StackFrame(1);
    49       Trace.TraceInformation(frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());
     49      Trace.TraceInformation("{0} - {1}", frame.GetMethod().DeclaringType, message);
    5050    }
    5151
     
    5656    public static void Warn(object message) {
    5757      StackFrame frame = new StackFrame(1);
    58       Trace.TraceWarning(frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());
     58      Trace.TraceWarning("{0} - {1}", frame.GetMethod().DeclaringType, message);
    5959    }
    6060
     
    6565    public static void Error(object message) {
    6666      StackFrame frame = new StackFrame(1);
    67       Trace.TraceError(frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());
     67      Trace.TraceError("{0} - {1}", frame.GetMethod().DeclaringType, message);
    6868    }
    6969
     
    7474    /// <param name="message">The message.</param>
    7575    public static void Debug(Type type, object message) {
    76       Trace.TraceInformation(type.ToString() + ": " + message.ToString());
     76      Trace.TraceInformation("{0}: {1}", type, message);
    7777    }
    7878
     
    8383    /// <param name="message">The message.</param>
    8484    public static void Info(Type type, object message) {
    85       Trace.TraceInformation(type.ToString() + ": " + message.ToString());
     85      Trace.TraceInformation("{0}: {1}", type, message);
    8686    }
    8787
     
    9292    /// <param name="message">The message.</param>
    9393    public static void Warn(Type type, object message) {
    94       Trace.TraceWarning(type.ToString() + ": " + message.ToString());
     94      Trace.TraceWarning("{0}: {1}", type, message);
    9595    }
    9696
     
    101101    /// <param name="message">The message.</param>
    102102    public static void Error(Type type, object message) {
    103       Trace.TraceError(type.ToString() + ": " + message.ToString());
     103      Trace.TraceError("{0}: {1}", type, message);
    104104    }
    105105
     
    110110    /// <param name="exception">The exception.</param>
    111111    public static void Debug(object message, Exception exception) {
    112       Trace.TraceInformation(message.ToString() + ": " + exception.ToString());
     112      Trace.TraceInformation("{0}: {1}:", message, exception);
    113113    }
    114114
     
    119119    /// <param name="exception">The exception.</param>       
    120120    public static void Info(object message, Exception exception) {
    121       Trace.TraceInformation(message.ToString() + ": " + exception.ToString());
     121      Trace.TraceInformation("{0}: {1}:", message, exception);
    122122    }
    123123
     
    128128    /// <param name="exception">The exception.</param>
    129129    public static void Warn(object message, Exception exception) {
    130       Trace.TraceWarning(message.ToString() + ": " + exception.ToString());
     130      Trace.TraceWarning("{0}: {1}:", message, exception);
    131131    }
    132132
     
    137137    /// <param name="exception">The exception.</param>
    138138    public static void Error(object message, Exception exception) {
    139       Trace.TraceError(message.ToString() + ": " + exception.ToString());
     139      Trace.TraceError("{0}: {1}:", message, exception);
    140140    }
    141141
     
    147147    /// <param name="exception">The exception.</param>
    148148    public static void Debug(Type type, object message, Exception exception) {
    149       Trace.TraceInformation(type.ToString() + ": " + message.ToString() + ": " + exception.ToString());
     149      Trace.TraceInformation("{0}: {1}: {2}", type, message, exception);
    150150    }
    151151
     
    157157    /// <param name="exception">The exception.</param>
    158158    public static void Info(Type type, object message, Exception exception) {
    159       Trace.TraceInformation(type.ToString() + ": " + message.ToString() + ": " + exception.ToString());
     159      Trace.TraceInformation("{0}: {1}: {2}", type, message, exception);
    160160    }
    161161
     
    167167    /// <param name="exception">The exception.</param>
    168168    public static void Warn(Type type, object message, Exception exception) {
    169       Trace.TraceWarning(type.ToString() + ": " + message.ToString() + ": " + exception.ToString());
     169      Trace.TraceWarning("{0}: {1}: {2}", type, message, exception);
    170170    }
    171171
     
    177177    /// <param name="exception">The exception.</param>
    178178    public static void Error(Type type, object message, Exception exception) {
    179       Trace.TraceError(type.ToString() + ": " + message.ToString() + ": " + exception.ToString());
     179      Trace.TraceError("{0}: {1}: {2}", type, message, exception);
    180180    }
    181181  }
  • trunk/sources/HeuristicLab.Tracing/3.3/app.config

    r6173 r6179  
    1111    </trace>
    1212  </system.diagnostics>
    13   <configSections>   
    14     <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    15       <section name="HeuristicLab.Tracing.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
    16     </sectionGroup>
    17   </configSections>
    18   <userSettings>
    19     <HeuristicLab.Tracing.Properties.Settings>
    20    
    21     </HeuristicLab.Tracing.Properties.Settings>
    22   </userSettings>
    2313<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Note: See TracChangeset for help on using the changeset viewer.