Commit 35684f20 authored by Wade's avatar Wade

/var/log path

parent c67726a2
...@@ -12,11 +12,6 @@ services: ...@@ -12,11 +12,6 @@ services:
ports: ports:
- "8000:8000" - "8000:8000"
entrypoint: /app/myapp entrypoint: /app/myapp
depends_on: # depends_on:
- standalone # - standalone
- webserver # - webserver
docker-host:
image: qoomon/docker-host
cap_add: ['NET_ADMIN', 'NET_RAW']
mem_limit: 8M
restart: on-failure
...@@ -35,8 +35,8 @@ func loggingInit() { ...@@ -35,8 +35,8 @@ func loggingInit() {
// // Configure log rotation with lumberjack // // Configure log rotation with lumberjack
lumberjackLogger := &lumberjack.Logger{ lumberjackLogger := &lumberjack.Logger{
//Filename: "/var/log/agent_chat.log", Filename: "/var/log/agent_chat.log",
Filename: "agent_chat.log", //Filename: "agent_chat.log",
MaxSize: 1, // Max size in megabytes before log is rotated MaxSize: 1, // Max size in megabytes before log is rotated
MaxBackups: 3, // Max number of old log files to retain MaxBackups: 3, // Max number of old log files to retain
MaxAge: 28, // Max number of days to retain old log files MaxAge: 28, // Max number of days to retain old log files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment