Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 760e4e0

Browse files
committed
Merge branch 'dev' of https://github.com/aspnet/Logging into dev
2 parents 47d19a7 + a69869b commit 760e4e0

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/Microsoft.Framework.Logging.Console/Internal/IConsole.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public interface IConsole
66
{
77
ConsoleColor BackgroundColor { get; set; }
88
ConsoleColor ForegroundColor { get; set; }
9-
void WriteLine(string format, params object[] args);
9+
void WriteLine(string message);
1010
}
1111
}

src/Microsoft.Framework.Logging.Console/LogConsole.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public ConsoleColor ForegroundColor
3232
}
3333
}
3434

35-
public void WriteLine(string format, params object[] args)
35+
public void WriteLine(string message)
3636
{
37-
System.Console.Error.WriteLine(format, args);
37+
System.Console.Error.WriteLine(message);
3838
}
3939
}
4040
}

test/Microsoft.Framework.Logging.Test/Console/TestConsole.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ public TestConsole(ConsoleSink sink)
1919

2020
public ConsoleColor ForegroundColor { get; set; }
2121

22-
public void WriteLine(string format, params object[] args)
22+
public void WriteLine(string message)
2323
{
24-
var message = string.Format(format, args);
2524
_sink.Write(new ConsoleContext()
2625
{
2726
ForegroundColor = ForegroundColor,

test/Microsoft.Framework.Logging.Test/ConsoleLoggerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.Framework.Logging.Test
1414
public class ConsoleLoggerTest
1515
{
1616
private const string _name = "test";
17-
private const string _state = "This is a test";
17+
private const string _state = "This is a test, and {curly braces} are just fine!";
1818

1919
private static readonly Func<object, Exception, string> TheMessageAndError =
2020
(message, error) => string.Format(CultureInfo.CurrentCulture, "{0}\r\n{1}", message, error);

0 commit comments

Comments
 (0)