Skip to content

Commit 92a7c00

Browse files
committed
[增加]1. 增加日志的配置
1 parent b0b40ee commit 92a7c00

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

GameFrameX.Foundation.Logger/LogOptions.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,31 @@ public LogOptions(string logPathName = "logs")
5858
/// </remarks>
5959
public bool IsConsole { get; set; } = true;
6060

61+
/// <summary>
62+
/// 是否输出到 GrafanaLoki,默认为 false。
63+
/// </summary>
64+
public bool IsGrafanaLoki { get; set; } = false;
65+
66+
/// <summary>
67+
/// GrafanaLoki 服务地址,默认为 http://localhost:3100。
68+
/// </summary>
69+
public string GrafanaLokiUrl { get; set; } = "http://localhost:3100";
70+
71+
/// <summary>
72+
/// GrafanaLoki 标签
73+
/// </summary>
74+
public Dictionary<string, string> GrafanaLokiLabels { get; set; } = new Dictionary<string, string>();
75+
76+
/// <summary>
77+
/// GrafanaLoki 用户名
78+
/// </summary>
79+
public string GrafanaLokiUsername { get; set; }
80+
81+
/// <summary>
82+
/// GrafanaLoki 密码
83+
/// </summary>
84+
public string GrafanaLokiPassword { get; set; }
85+
6186
/// <summary>
6287
/// 日志滚动间隔,默认为每天(Day)。
6388
/// </summary>

0 commit comments

Comments
 (0)