Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed RunTimCodeGeneratorLogging.xml to RunTimCodeGeneratorLoggingC…

…onfig.xml
  • Loading branch information...
commit 356833e56e0e8d6ee52a87417246c7a81fae3dbd 1 parent 0cdb7cd
@shashankshetty shashankshetty authored
View
7 src/RunTimeCodeGenerator/AssemblyGeneration/AssemblyGenerator.cs
@@ -13,11 +13,6 @@ public class AssemblyGenerator : IAssemblyGenerator
{
private static readonly ILog Log = LogManager.GetLogger(typeof(AssemblyGenerator));
- public AssemblyGenerator()
- {
- XmlConfigurator.Configure(new FileInfo(DefaultSettings.LogFile));
- }
-
public bool Compile(string[] classNames, AssemblyAttributes assemblyAttributes)
{
CSharpCodeProvider codeProvider = new CSharpCodeProvider(new Dictionary<string, string>
@@ -42,6 +37,8 @@ public bool Compile(string[] classNames, AssemblyAttributes assemblyAttributes)
private static void GenerateErrorReport(CompilerErrorCollection errorsCollection)
{
+ XmlConfigurator.Configure(new FileInfo(DefaultSettings.LogFile));
+
if (errorsCollection.Count == 0)
{
return;
View
3  src/RunTimeCodeGenerator/DefaultSettings.cs
@@ -2,7 +2,6 @@ namespace RunTimeCodeGenerator
{
public class DefaultSettings
{
- public static string LogFile = "RunTimCodeGeneratorLogging.xml";
-
+ public static string LogFile = "RunTimCodeGeneratorLoggingConfig.xml";
}
}
View
0  ...nTimeCodeGenerator/RunTimCodeGeneratorLogging.xml → ...odeGenerator/RunTimCodeGeneratorLoggingConfig.xml
File renamed without changes
View
4 src/RunTimeCodeGenerator/RunTimeCodeGenerator.csproj
@@ -73,8 +73,8 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
- <Content Include="RunTimCodeGeneratorLogging.xml">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ <Content Include="RunTimCodeGeneratorLoggingConfig.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Please sign in to comment.
Something went wrong with that request. Please try again.