pull/103/head
刘河 2019-03-24 03:24:43 +08:00
parent 1b475b123c
commit f0493543ff
4 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ func main() {
if *logType == "stdout" {
logs.SetLogger(logs.AdapterConsole, `{"level":`+*logLevel+`,"color":true}`)
} else {
logs.SetLogger(logs.AdapterFile, `{"level":`+*logLevel+`,"filename":"npc_log.log"}`)
logs.SetLogger(logs.AdapterFile, `{"level":`+*logLevel+`,"filename":"npc_log.log","maxlines":1000,"daily":false,"color":true}`)
}
env := common.GetEnvMap()
if *serverAddr == "" {

View File

@ -50,7 +50,7 @@ func main() {
if *logType == "stdout" {
logs.SetLogger(logs.AdapterConsole, `{"level":`+level+`,"color":true}`)
} else {
logs.SetLogger(logs.AdapterFile, `{"level":`+level+`,"filename":"nps_log.log"}`)
logs.SetLogger(logs.AdapterFile, `{"level":`+level+`,"filename":"nps_log.log","maxlines":1000,"daily":false,"color":true}`)
}
task := &file.Tunnel{
Mode: "webServer",

View File

@ -8,7 +8,7 @@
<label class="col-sm-2 control-label" langtag="info-remark"></label>
<div class="col-sm-10">
<input class="form-control" type="text" name="remark"
placeholder="empty means to be unrestricted">
placeholder="remark">
</div>
</div>

View File

@ -9,7 +9,7 @@
<label class="col-sm-2 control-label" langtag="info-remark"></label>
<div class="col-sm-10">
<input class="form-control" value="{{.c.Remark}}" type="text" name="remark"
placeholder="empty means to be unrestricted">
placeholder="remark">
</div>
</div>
<div class="form-group" id="flow_limit">