Log to different adapter according to level
This commit is contained in:
parent
98eeec4cbb
commit
0970d6cc38
5 changed files with 104 additions and 69 deletions
|
@ -143,9 +143,9 @@ HOST =
|
|||
PROVIDER = file
|
||||
; Provider config options
|
||||
; memory: not have any config yet
|
||||
; file: session file path, e.g. data/sessions
|
||||
; redis: config like redis server addr, poolSize, password, e.g. 127.0.0.1:6379,100,astaxie
|
||||
; mysql: go-sql-driver/mysql dsn config string, e.g. root:password@/session_table
|
||||
; file: session file path, e.g. "data/sessions"
|
||||
; redis: config like redis server addr, poolSize, password, e.g. "127.0.0.1:6379,100,astaxie"
|
||||
; mysql: go-sql-driver/mysql dsn config string, e.g. "root:password@/session_table"
|
||||
PROVIDER_CONFIG = data/sessions
|
||||
; Session cookie name
|
||||
COOKIE_NAME = i_like_gogits
|
||||
|
@ -169,6 +169,7 @@ DISABLE_GRAVATAR = false
|
|||
|
||||
[log]
|
||||
; Either "console", "file", "conn", "smtp" or "database", default is "console"
|
||||
; Use comma to separate multiple modes, e.g. "console, file"
|
||||
MODE = console
|
||||
; Buffer length of channel, keep it as it is if you don't know what it is.
|
||||
BUFFER_LEN = 10000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue