aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis/default_output.conf
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/environments/paludis/default_output.conf')
-rw-r--r--paludis/environments/paludis/default_output.conf11
1 files changed, 8 insertions, 3 deletions
diff --git a/paludis/environments/paludis/default_output.conf b/paludis/environments/paludis/default_output.conf
index c86ac88ed..ae70c50b6 100644
--- a/paludis/environments/paludis/default_output.conf
+++ b/paludis/environments/paludis/default_output.conf
@@ -18,6 +18,11 @@
#
# extra_message_managers may be used to define additional output managers that
# process messages.
+#
+# log_path can be set to change where log files are saved. It defaults to
+# ${root}/var/log/paludis .
+
+log_path ?= ${root}/var/log/paludis
# First, we define some basic rules. If we're running exclusively, use the
# 'exclusive' manager:
@@ -102,7 +107,7 @@ if_unset = log_output_keep_failures
# location of the log when our output manager is closed:
[manager log_output_keep_failures]
handler = file
-filename = ${root}/var/log/paludis/%{time}-%{action}-%{full_name}.out
+filename = ${log_path}/%{time}-%{action}-%{full_name}.out
keep_on_empty = false
keep_on_success = false
summary_output_manager = format_messages_standard
@@ -112,7 +117,7 @@ summary_output_message = Output log: ${filename}
# 'always_keep_output_logs' is 'true'.
[manager log_output_keep_always]
handler = file
-filename = ${root}/var/log/paludis/%{time}-%{action}-%{full_name}.out
+filename = ${log_path}/%{time}-%{action}-%{full_name}.out
keep_on_empty = false
keep_on_success = true
summary_output_manager = format_messages_standard
@@ -158,7 +163,7 @@ children = log_messages_always ${extra_message_managers}
# Our messages log goes to a file, which gets discarded only if it is empty:
[manager log_messages_always]
handler = file
-filename = ${root}/var/log/paludis/%{time}-%{action}-%{full_name}.messages
+filename = ${log_path}/%{time}-%{action}-%{full_name}.messages
keep_on_empty = false
keep_on_success = true
summary_output_manager = format_messages_standard