forked from cyq1162/cyqdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogType.cs
65 lines (64 loc) · 1.66 KB
/
LogType.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
56
57
58
59
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using System.Text;
namespace CYQ.Data
{
internal static class Error
{
/// <summary>
/// 抛出异常
/// </summary>
/// <param name="msg"></param>
internal static object Throw(string msg)
{
//#if DEBUG
// return "";
//#else
throw new Exception("V" + AppConfig.Version + " " + msg);
//#endif
}
}
/// <summary>
/// LogType
/// <para>日志类型</para>
/// </summary>
public static class LogType
{
/// <summary>
/// 调试
/// </summary>
public const string Debug = "Debug";
/// <summary>
/// 信息
/// </summary>
public const string Info = "Info";
/// <summary>
/// 警告
/// </summary>
public const string Warn = "Warn";
/// <summary>
/// 错误
/// </summary>
public const string Error = "Error";
/// <summary>
/// DataBase
/// </summary>
public const string DataBase = "DataBase";
/// <summary>
/// Cache
/// </summary>
public const string Cache = "Cache";
/// <summary>
/// Aries Dev Framework
/// </summary>
public const string Aries = "Aries";
/// <summary>
/// Taurus Dev Framework
/// </summary>
public const string Taurus = "Taurus";
/// <summary>
/// Gemini Workflow Dev Framework
/// </summary>
public const string Gemini = "Gemini";
}
}