aboutsummaryrefslogtreecommitdiff
path: root/backend/handlers/logs.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-02 22:02:11 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-02 22:02:11 +0300
commit266698e46744063752f7cc893c539f132e3cdc37 (patch)
tree535523867d77bc0c3717b2753ab62984724f5ee8 /backend/handlers/logs.go
parentfeat: map summary logs (#55) (diff)
downloadlphub-266698e46744063752f7cc893c539f132e3cdc37.tar.gz
lphub-266698e46744063752f7cc893c539f132e3cdc37.tar.bz2
lphub-266698e46744063752f7cc893c539f132e3cdc37.zip
feat: detailed logs for records (#55)
Former-commit-id: af37633ce05f08fc517cb3e8fec3e84a0bd5ba49
Diffstat (limited to 'backend/handlers/logs.go')
-rw-r--r--backend/handlers/logs.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/backend/handlers/logs.go b/backend/handlers/logs.go
index 0fef6a1..c971f79 100644
--- a/backend/handlers/logs.go
+++ b/backend/handlers/logs.go
@@ -11,8 +11,9 @@ import (
11) 11)
12 12
13const ( 13const (
14 LogTypeMod string = "Mod" 14 LogTypeMod string = "Mod"
15 LogTypeLogin string = "Login" 15 LogTypeLogin string = "Login"
16 LogTypeRecord string = "Record"
16 17
17 LogDescriptionLoginSuccess string = "Success" 18 LogDescriptionLoginSuccess string = "Success"
18 LogDescriptionLoginFailToken string = "TokenFail" 19 LogDescriptionLoginFailToken string = "TokenFail"
@@ -23,6 +24,15 @@ const (
23 LogDescriptionMapSummaryEdit string = "MapSummaryEdit" 24 LogDescriptionMapSummaryEdit string = "MapSummaryEdit"
24 LogDescriptionMapSummaryEditImage string = "MapSummaryEditImage" 25 LogDescriptionMapSummaryEditImage string = "MapSummaryEditImage"
25 LogDescriptionMapSummaryDelete string = "MapSummaryDelete" 26 LogDescriptionMapSummaryDelete string = "MapSummaryDelete"
27
28 LogDescriptionRecordSuccess string = "Success"
29 LogDescriptionRecordFailInsertRecord string = "InsertRecordFail"
30 LogDescriptionRecordFailInsertDemo string = "InsertDemoFail"
31 LogDescriptionRecordFailProcessDemo string = "ProcessDemoFail"
32 LogDescriptionRecordFailCreateDemo string = "CreateDemoFail"
33 LogDescriptionRecordFailOpenDemo string = "OpenDemoFail"
34 LogDescriptionRecordFailSaveDemo string = "SaveDemoFail"
35 LogDescriptionRecordFailInvalidRequest string = "InvalidRequestFail"
26) 36)
27 37
28type Log struct { 38type Log struct {