-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.go
48 lines (41 loc) · 1.15 KB
/
category.go
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
package logging
type Category string
type SubCategory string
type ExtraKey string
const (
General Category = "General"
Internal Category = "Internal"
Postgres Category = "Postgres"
Redis Category = "Redis"
Validation Category = "Validation"
RequestResponse Category = "RequestResponse"
)
const (
// General
Startup SubCategory = "Startup"
ExternalService SubCategory = "ExternalService"
// Postgres
Migration SubCategory = "Migration"
Select SubCategory = "Select"
Rollback SubCategory = "Rollback"
Update SubCategory = "Update"
Delete SubCategory = "Delete"
Insert SubCategory = "Insert"
// Internal
Api SubCategory = "Api"
HashPassword SubCategory = "HashPassword"
)
const (
AppName ExtraKey = "AppName"
LoggerName ExtraKey = "Logger"
ClientIp ExtraKey = "ClientIp"
HostIp ExtraKey = "HostIp"
Method ExtraKey = "Method"
StatusCode ExtraKey = "StatusCode"
BodySize ExtraKey = "BodySize"
Path ExtraKey = "Path"
Latency ExtraKey = "Latency"
RequestBody ExtraKey = "RequestBody"
ResponseBody ExtraKey = "ResponseBody"
ErrorMessage ExtraKey = "ErrorMessage"
)