-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoggerOptions.cs
55 lines (54 loc) · 2 KB
/
LoggerOptions.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
49
50
51
52
53
54
55
namespace FBCTextLogger
{
public class LoggerOptions
{
private string dkfjsdlk_hndjkghnfjkxhgn_jkhg;
/// <summary>
/// Unique key
/// </summary>
public string ChannelName
{
get
{
return dkfjsdlk_hndjkghnfjkxhgn_jkhg ?? (dkfjsdlk_hndjkghnfjkxhgn_jkhg = "");
}
set
{
dkfjsdlk_hndjkghnfjkxhgn_jkhg = value ?? dkfjsdlk_hndjkghnfjkxhgn_jkhg;
}
}
/// <summary>
/// Default false
/// </summary>
public bool AddDateTimeStampEachLog { get; }
/// <summary>
/// Default "{0}" or null or Empty string
/// Example "{0} ->"
/// </summary>
public string DateTimeStampFormat { get; }
/// <summary>
/// Default: null -> Current assembly path
/// </summary>
public string LogDirectoryPath { get; }
/// <summary>
/// Default: null -> Current assembly name without extension
/// </summary>
public string LogFileNamePrefix { get; }
/// <summary>
///
/// </summary>
/// <param name="channelName">Unique key</param>
/// <param name="addDateTimeStampEachLog">Default false</param>
/// <param name="dateTimeStampFormat">default null</param>
/// <param name="logDirectoryPath">default null: Current assembly path</param>
/// <param name="logFileNamePrefix">default null: Current assembly name without extension</param>
public LoggerOptions(string channelName, bool addDateTimeStampEachLog = false, string dateTimeStampFormat = null, string logDirectoryPath = null, string logFileNamePrefix = null)
{
ChannelName = channelName ?? "";
AddDateTimeStampEachLog = addDateTimeStampEachLog;
DateTimeStampFormat = dateTimeStampFormat;
LogDirectoryPath = logDirectoryPath;
LogFileNamePrefix = logFileNamePrefix;
}
}
}