changeset 98:349cbfea2596

docker (prosody): restored logs in /var/log + info logs to console
author Goffi <goffi@goffi.org>
date Fri, 26 Feb 2016 16:09:01 +0100
parents 6e6274aa3916
children 15e317bb602f
files docker/prosody/prosody.cfg.lua
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/docker/prosody/prosody.cfg.lua	Fri Feb 26 11:33:35 2016 +0100
+++ b/docker/prosody/prosody.cfg.lua	Fri Feb 26 16:09:01 2016 +0100
@@ -126,7 +126,12 @@
 -- expose the port! It's just for linked containers)
 component_interface="0.0.0.0"
 
--- we want default, unsplitted logs, so we have removed all logging stuff
+log = {
+	-- Log to files and console (change 'info' to 'debug' for debug logs):
+	info = "/var/log/prosody/prosody.log";
+	error = "/var/log/prosody/prosody.err";
+	info = "*console"; -- Log to the console, so "docker logs" will show them
+}
 
 VirtualHost (domain)
 	privileged_entities = {