Changeset 6179
- Timestamp:
- 05/11/11 09:57:24 (14 years ago)
- 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 114 114 <Compile Include="Logger.cs" /> 115 115 <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>121 116 </ItemGroup> 122 117 <ItemGroup> … … 130 125 <None Include="HeuristicLab.snk" /> 131 126 <None Include="Properties\AssemblyInfo.frame" /> 132 <None Include="Properties\Settings.settings">133 <Generator>SettingsSingleFileGenerator</Generator>134 <LastGenOutput>Settings.Designer.cs</LastGenOutput>135 </None>136 127 </ItemGroup> 137 128 <ItemGroup> -
trunk/sources/HeuristicLab.Tracing/3.3/Logger.cs
r6173 r6179 38 38 public static void Debug(object message) { 39 39 StackFrame frame = new StackFrame(1); 40 Trace.TraceInformation( frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());40 Trace.TraceInformation("{0} - {1}", frame.GetMethod().DeclaringType, message); 41 41 } 42 42 … … 47 47 public static void Info(object message) { 48 48 StackFrame frame = new StackFrame(1); 49 Trace.TraceInformation( frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());49 Trace.TraceInformation("{0} - {1}", frame.GetMethod().DeclaringType, message); 50 50 } 51 51 … … 56 56 public static void Warn(object message) { 57 57 StackFrame frame = new StackFrame(1); 58 Trace.TraceWarning( frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());58 Trace.TraceWarning("{0} - {1}", frame.GetMethod().DeclaringType, message); 59 59 } 60 60 … … 65 65 public static void Error(object message) { 66 66 StackFrame frame = new StackFrame(1); 67 Trace.TraceError( frame.GetMethod().DeclaringType.ToString() + " - " + message.ToString());67 Trace.TraceError("{0} - {1}", frame.GetMethod().DeclaringType, message); 68 68 } 69 69 … … 74 74 /// <param name="message">The message.</param> 75 75 public static void Debug(Type type, object message) { 76 Trace.TraceInformation( type.ToString() + ": " + message.ToString());76 Trace.TraceInformation("{0}: {1}", type, message); 77 77 } 78 78 … … 83 83 /// <param name="message">The message.</param> 84 84 public static void Info(Type type, object message) { 85 Trace.TraceInformation( type.ToString() + ": " + message.ToString());85 Trace.TraceInformation("{0}: {1}", type, message); 86 86 } 87 87 … … 92 92 /// <param name="message">The message.</param> 93 93 public static void Warn(Type type, object message) { 94 Trace.TraceWarning( type.ToString() + ": " + message.ToString());94 Trace.TraceWarning("{0}: {1}", type, message); 95 95 } 96 96 … … 101 101 /// <param name="message">The message.</param> 102 102 public static void Error(Type type, object message) { 103 Trace.TraceError( type.ToString() + ": " + message.ToString());103 Trace.TraceError("{0}: {1}", type, message); 104 104 } 105 105 … … 110 110 /// <param name="exception">The exception.</param> 111 111 public static void Debug(object message, Exception exception) { 112 Trace.TraceInformation( message.ToString() + ": " + exception.ToString());112 Trace.TraceInformation("{0}: {1}:", message, exception); 113 113 } 114 114 … … 119 119 /// <param name="exception">The exception.</param> 120 120 public static void Info(object message, Exception exception) { 121 Trace.TraceInformation( message.ToString() + ": " + exception.ToString());121 Trace.TraceInformation("{0}: {1}:", message, exception); 122 122 } 123 123 … … 128 128 /// <param name="exception">The exception.</param> 129 129 public static void Warn(object message, Exception exception) { 130 Trace.TraceWarning( message.ToString() + ": " + exception.ToString());130 Trace.TraceWarning("{0}: {1}:", message, exception); 131 131 } 132 132 … … 137 137 /// <param name="exception">The exception.</param> 138 138 public static void Error(object message, Exception exception) { 139 Trace.TraceError( message.ToString() + ": " + exception.ToString());139 Trace.TraceError("{0}: {1}:", message, exception); 140 140 } 141 141 … … 147 147 /// <param name="exception">The exception.</param> 148 148 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); 150 150 } 151 151 … … 157 157 /// <param name="exception">The exception.</param> 158 158 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); 160 160 } 161 161 … … 167 167 /// <param name="exception">The exception.</param> 168 168 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); 170 170 } 171 171 … … 177 177 /// <param name="exception">The exception.</param> 178 178 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); 180 180 } 181 181 } -
trunk/sources/HeuristicLab.Tracing/3.3/app.config
r6173 r6179 11 11 </trace> 12 12 </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>23 13 <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Note: See TracChangeset
for help on using the changeset viewer.