File tree 1 file changed +25
-0
lines changed
GameFrameX.Foundation.Logger 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,31 @@ public LogOptions(string logPathName = "logs")
58
58
/// </remarks>
59
59
public bool IsConsole { get ; set ; } = true ;
60
60
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
+
61
86
/// <summary>
62
87
/// 日志滚动间隔,默认为每天(Day)。
63
88
/// </summary>
You can’t perform that action at this time.
0 commit comments