mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 21:54:36 +00:00
Switch logging to local time
This commit is contained in:
parent
261d54197d
commit
a1302fb594
1 changed files with 2 additions and 2 deletions
|
@ -39,10 +39,10 @@ class Program {
|
|||
/// Sends a formatted message to console.
|
||||
/// </summary>
|
||||
public static void Log(string source, string message) {
|
||||
var ts = DateTime.UtcNow;
|
||||
var ts = DateTime.Now;
|
||||
var ls = new string[] { "\r\n", "\n" };
|
||||
foreach (var item in message.Split(ls, StringSplitOptions.None))
|
||||
Console.WriteLine($"{ts:u} [{source}] {item}");
|
||||
Console.WriteLine($"{ts:s} [{source}] {item}");
|
||||
}
|
||||
|
||||
private static void OnCancelKeyPressed(object? sender, ConsoleCancelEventArgs e) {
|
||||
|
|
Loading…
Reference in a new issue