mirror of
https://github.com/Ellpeck/ExtremelySimpleLogger.git
synced 2024-05-21 10:06:59 +02:00
18 lines
509 B
C#
18 lines
509 B
C#
using System;
|
|
|
|
namespace ExtremelySimpleLogger {
|
|
/// <summary>
|
|
/// A <see cref="Sink"/> that writes log output to <see cref="Console.Out"/>.
|
|
/// </summary>
|
|
public class ConsoleSink : Sink {
|
|
|
|
/// <summary>
|
|
/// Logs the given message, which has already been formatted using <see cref="Sink.Formatter"/>.
|
|
/// </summary>
|
|
/// <param name="s">The message to log</param>
|
|
public override void Log(string s) {
|
|
Console.WriteLine(s);
|
|
}
|
|
|
|
}
|
|
} |