-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogHelper.cs
29 lines (26 loc) · 1.04 KB
/
LogHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// -----------------------------------------------------------------------
// <copyright file="LogHelper.cs" company="Proxus LTD">
// Copyright (c) Proxus LTD. All rights reserved.
// </copyright>
// Solution: Proxus_MQTT_Bench
// Project: Proxus_MQTT_Bench
// <author>Volkan Alkılıç</author>
// <date>03.08.2024</date>
// -----------------------------------------------------------------------
// WARNING: This file is licensed to Proxus LTD. Unauthorized copying,
// modification, distribution or use is strictly prohibited.
// -----------------------------------------------------------------------
namespace Proxus_MQTT_Bench;
public static class LogHelper
{
public static void LogInformation(string message)
{
Console.WriteLine($"[INFO] {DateTime.Now:yyyy-MM-dd HH:mm:ss} - {message}");
}
public static void LogError(string message)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.Error.WriteLine($"[ERROR] {DateTime.Now:yyyy-MM-dd HH:mm:ss} - {message}");
Console.ResetColor();
}
}