Created
April 25, 2017 17:28
-
-
Save shurane/20fd8151087535fbd6a56f2af926163f to your computer and use it in GitHub Desktop.
Logging.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<system.diagnostics> | |
<trace autoflush="false" indentsize="4"> | |
<listeners> | |
<remove name="Default" /> | |
<add name="consoleListener" type="System.Diagnostics.ConsoleTraceListener"/> | |
</listeners> | |
</trace> | |
</system.diagnostics> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
namespace Logging | |
{ | |
public class Logging | |
{ | |
public static void Main(String[] args) | |
{ | |
Console.WriteLine("Hello World"); | |
// http://stackoverflow.com/a/1614253/198348 | |
//Trace.Listeners.Add(new ConsoleTraceListener()); | |
Trace.WriteLine("Tracing that output"); | |
Console.ReadLine(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net46</TargetFramework> | |
</PropertyGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment