Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1485979 closed Feature Requests (wontfix)

r2729 - Please modify 'write_log' hook

Reported by: rosali Owned by:
Priority: 5 Milestone: 0.3-stable
Component: Plugin API Version: git-master
Severity: normal Keywords:
Cc:

Description

Please modify the write_log hook to allow manipulation of the prepended date in the log line.

Suggestion attached.

Attachments (1)

main.inc.txt (601 bytes) - added by rosali 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by rosali

comment:1 follow-up: Changed 4 years ago by alec

why?

comment:2 in reply to: ↑ 1 ; follow-up: Changed 4 years ago by rosali

Replying to alec:

why?

The timezone offset change in my RoundCube logs. I have fixed the php.ini settings as adviced by Till (see devs mailing list). But I still get different timezone entries. So I want to use the hook to calculate the date stamp of the log line myself.

$argsdate? = date('d-M-Y H:i:s',time() - date('Z'));

comment:3 in reply to: ↑ 2 Changed 4 years ago by rosali

Replying to rosali:

Replying to alec:

why?

The timezone offset change in my RoundCube logs. I have fixed the php.ini settings as adviced by Till (see devs mailing list). But I still get different timezone entries. So I want to use the hook to calculate the date stamp of the log line myself.

$argsdate? = date('d-M-Y H:i:s',time() - date('Z'));

Also it might be useful to remove the timestamp at all, if using a database based log.

comment:4 Changed 4 years ago by rosali

If you don't like my suggestion close ticket.

I have coded a plugin to redirect logs to database:

http://mail4us.net/dev/plugins/dblog.zip

Only thing what's missing in the plugin is to export to file by ftp (support round robin).

comment:5 Changed 4 years ago by alec

  • Resolution set to wontfix
  • Status changed from new to closed

'abort' should be enough.

comment:6 Changed 4 years ago by thomasb

Well, this doesn't bring any side effects... implemented in [a0c4cbe8]

Note: See TracTickets for help on using tickets.