Summary | Changing log type from file doesn't work |
Queue | Horde Base |
Queue Version | 4.0.8 |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | |
Requester | jacob-horde (at) vindvejr (dot) dk |
Created | 08/03/2011 (5085 days ago) |
Due | |
Updated | 08/04/2011 (5084 days ago) |
Assigned | |
Resolved | 08/04/2011 (5084 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
there when changing from File to Syslog. On the other hand, when
changing from File to Syslog and back again, you'll lose the filename.
is automated, you cannot simply add some random behavior change for
one setting.
avoids the problem, and makes it possible to keep the
filename/syslog facility when changing between the different log
types.
configuration compatibility with PEAR's Log package (which is less
important though).
the same configuration name, that's why the old value is used.
since it's possible to corrupt the configuration by mistake. At least
it's not really user-friendly. It would be better to do one of the
following when changing type to syslog:
1) Clear $conf[log][name]. This avoids users leaving a filename there
when changing from File to Syslog. On the other hand, when changing
from File to Syslog and back again, you'll lose the filename.
2) User another variable ($conf[log][syslog] or something). This
avoids the problem, and makes it possible to keep the filename/syslog
facility when changing between the different log types.
State ⇒ Not A Bug
the same configuration name, that's why the old value is used.
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ Changing log type from file doesn't work
Type ⇒ Bug
State ⇒ Unconfirmed
$conf['log']['priority'] = 'INFO';
$conf['log']['ident'] = 'HORDE';
$conf['log']['name'] = '/tmp/horde.log';
$conf['log']['params']['append'] = true;
$conf['log']['params']['format'] = 'default';
$conf['log']['type'] = 'file';
Using the Horde configuration under tab "Logging" I now change the
type from "File" to "Syslog", which will produce the following conf.php:
$conf['log']['priority'] = 'INFO';
$conf['log']['ident'] = 'HORDE';
$conf['log']['name'] = /tmp/horde.log;
$conf['log']['type'] = 'syslog';
This breaks the configuration, since the filename isn't surrounded by
''. The GUI insists that filename is required, even though the log
type is now "Syslog". Therefore you have to manually delete the line
$conf['log']['name'] from conf.php in order the get the installation
to work again.