-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFluentConsole.cs
48 lines (28 loc) · 1.06 KB
/
FluentConsole.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*---------------------------------------------------------------------------------------------
► FluentConsole.Net , Working With .Net Console In Elegant Way ! ◄
→ Copyright (c) 2020-2023 Shayan Firoozi , Bandar Abbas , Iran , Under MIT License.
→ Contact : <shayan.firoozi@gmail.com>
→ GitHub repository : https://github.com/ShayanFiroozi/FluentConsole.Net
---------------------------------------------------------------------------------------------*/
using FluentConsoleNet.Builder;
using System;
namespace FluentConsoleNet
{
public static class FluentConsole
{
private static dynamic Logger = null;
public static FluentConsoleBuilder Console => FluentConsoleBuilder.Create(Logger);
public static void AttachLogger(dynamic logger)
{
if (logger is null)
{
throw new ArgumentNullException(nameof(logger));
}
Logger = logger;
}
public static void DetachLogger()
{
Logger = null;
}
}
}