Skip to content

Commit

Permalink
allow loglevel to passed as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw committed Dec 20, 2016
1 parent fe8d7e2 commit fa001f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/OmniSharp.Host/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ public static void Main(string[] args)
enumerator.MoveNext();
serverPort = int.Parse((string)enumerator.Current);
}
else if (arg.ToLowerInvariant() == "-loglevel")
{
enumerator.MoveNext();
LogLevel level;
if (Enum.TryParse((string) enumerator.Current, true, out level))
{
logLevel = level;
}
}
else if (arg == "-v")
{
logLevel = LogLevel.Debug;
Expand Down

0 comments on commit fa001f1

Please sign in to comment.