2021-05-23 23:27:41 +00:00
|
|
|
package common
|
2017-08-04 08:20:59 +00:00
|
|
|
|
2020-02-21 16:13:41 +00:00
|
|
|
type LOG_MODE int
|
|
|
|
|
2017-08-04 08:20:59 +00:00
|
|
|
const (
|
2020-02-21 16:13:41 +00:00
|
|
|
LOG_NIL = 0
|
|
|
|
LOG_FMT = 1
|
|
|
|
//LOG_FILE = 2
|
|
|
|
|
|
|
|
LOG_INFO LOG_MODE = 0
|
|
|
|
LOG_WARN LOG_MODE = 1
|
|
|
|
LOG_ERROR LOG_MODE = 2
|
2017-08-04 08:20:59 +00:00
|
|
|
)
|
2020-02-20 06:20:56 +00:00
|
|
|
|
2018-04-03 17:54:27 +00:00
|
|
|
//session储存头
|
2020-02-20 06:20:56 +00:00
|
|
|
const HEAD_SESSION_ADD = "session#"
|