Skip to content

Commit

Permalink
Makes logs verbose if debug version. See #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Aflalo committed Aug 24, 2015
1 parent c16924a commit 2940d6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SoundSwitch/Framework/AppLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ namespace SoundSwitch.Framework
{
internal static class AppLogger
{
public static string LogsLocation { get; } = Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.ApplicationData), Application.ProductName, "Logs");

static AppLogger()
{
SetLoggerOptions(Log.TextFile);
Expand All @@ -33,8 +30,14 @@ static AppLogger()
Log.TextFile.Open();
Log.TextFileTraceLevel = TraceLevel.Warn;
Log.EventLogTraceLevel = TraceLevel.Error;
#if DEBUG
Log.BinaryFileTraceLevel = TraceLevel.Verbose;
#endif
}

public static string LogsLocation { get; } = Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.ApplicationData), Application.ProductName, "Logs");

public static Logger Log { get; } = Logger.GetLogger(Application.ProductName);

private static void SetLoggerOptions(FileBase file)
Expand Down

0 comments on commit 2940d6a

Please sign in to comment.