Forum

all logs to the same file

Hans-Cees
29 January 2018, 21:11
Hi,
I am using hiawatha inside a docker container.
If I route all logfiles to /dev/stdout only the systemlog seems to log.
I am trying to log lie this
SystemLogfile = /dev/stdout
VirtualHost {
Hostname = www.exampl.com, *.example.com
AccessLogfile = /dev/stdout
ErrorLogfile = /dev/stderr
}

Can this work?
Hans-Cees
29 January 2018, 22:23
Of course, the dockerfile was to blame.

You should log to a file in the docker container
and then inside the container, or in docklerfile do
ln -sf /dev/stdout /var/log/hiawatha/access.log
ln -sf /dev/stdout /var/log/hiawatha/system.log
ln -sf /dev/stdout /var/log/hiawatha/exploit.log
ln -sf /dev/stdout /var/log/hiawatha/error.log
This topic has been closed.