aa581a64d0772ff910edc5dad5ba546726edbf9b
[kivitendo-erp.git] / config / lx_office.conf.default
1 [task_server]
2 # User name to use for database access
3 login = mb
4 # Set to 1 for debug messages in /tmp/lx-office-debug.log
5 debug = 1
6 # Chose a system user the daemon should run under when started as root.
7 run_as =
8
9 [periodic_invoices]
10 # The user name a report about the posted and printed invoices is sent
11 # to.
12 send_email_to  = mb
13 # The "From:" header for said email.
14 email_from     = Lx-Office Daemon <root@localhost>
15 # The subject for said email.
16 email_subject  = Benachrichtigung: automatisch erstellte Rechnungen
17 # The template file used for the email's body.
18 email_template = templates/webpages/oe/periodic_invoices_email.txt
19
20 [Console]
21 # autologin to use if none is given
22 login = mb
23
24 # autorun lines will be executed after autologin.
25 # be warned that loading huge libraries will noticably lengthen startup time.
26 autorun = require "bin/mozilla/common.pl";
27         = use English qw(-no_match_vars);
28         = use List::Util qw(min max);
29         = use Sort::Naturally;
30         = my ($a, $b, $e, $f, @a1, @a2, %h);
31         = sub take { my $max = shift; my $r = ref($_[0]) eq 'ARRAY' ? $_[0] : \@_; return @{$r}[0..List::Util::min($max, scalar(@{$r})) - 1]; }
32
33 # location of history file for permanent history
34 history_file = users/console_history
35
36 [debug]
37 # Use DBIx::Log4perl for logging DBI calls. The string LXDEBUGFILE
38 # will be replaced by the file name configured for $::lxdebug.
39 dbix_log4perl = 0
40 dbix_log4perl_config = log4perl.logger = FATAL, LOGFILE
41                      = log4perl.appender.LOGFILE=Log::Log4perl::Appender::File
42                      = log4perl.appender.LOGFILE.filename=LXDEBUGFILE
43                      = log4perl.appender.LOGFILE.mode=append
44                      = log4perl.appender.LOGFILE.Threshold = ERROR
45                      = log4perl.appender.LOGFILE.layout=PatternLayout
46                      = log4perl.appender.LOGFILE.layout.ConversionPattern=[%r] %F %L %c - %m%n
47                      = log4perl.logger.DBIx.Log4perl=DEBUG, A1
48                      = log4perl.appender.A1=Log::Log4perl::Appender::File
49                      = log4perl.appender.A1.filename=LXDEBUGFILE
50                      = log4perl.appender.A1.mode=append
51                      = log4perl.appender.A1.layout=Log::Log4perl::Layout::PatternLayout
52                      = log4perl.appender.A1.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n
53
54 # Activate certain global debug messages. If you want to combine
55 # several options then list them seperated by spaces.
56 #
57 # Possible values include:
58 #   NONE   - no debug output (default)
59 #   INFO
60 #   DEBUG1
61 #   DEBUG2
62 #   QUERY              - Dump SQL queries (only in legacy code; see also "dbix_log4perl" above)
63 #   TRACE              - Track function calls and returns
64 #   BACKTRACE_ON_ERROR - Print a function call backtrace when $form->error() is called
65 #   REQUEST_TIMER      - Log timing of HTTP requests
66 #   WARN               - warnings
67 #   ALL                - all possible debug messages
68 #
69 #   DEVEL              - sames as "INFO QUERY TRACE BACKTRACE_ON_ERROR REQUEST_TIMER"
70 #
71 # Example:
72 #   global_level = TRACE QUERY
73 global_level = NONE
74
75 # Activate monitoring of the content of $form. If it is active then
76 # monitoring can be turned on for certain variables with the
77 # following:
78 #   $form->{"Watchdog::<variable>"} = 1;
79 # Monitoring has a performance cost and is therefore deactivated by
80 # default.
81 watch_form = 0
82
83 # If you want to debug the creation of LaTeX files then set this to 1.
84 # That way the temporary LaTeX files created during PDF creation are
85 # not removed and remain in the "users" directory.
86 keep_temp_files = 0
87
88 # The file name where the debug messages are written to.
89 file_name = /tmp/lx-office-debug.log