Bug 7738 - separate log per message
Summary: separate log per message
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-19 11:15 UTC by Brian J. Murrell
Modified: 2019-07-19 16:36 UTC (History)
2 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Brian J. Murrell 2019-07-19 11:15:52 UTC
It would be useful if spamd had an option to log the debug processing it does while processing a message in a "file per message" format so that instead of one big log file, one had a (big) dir of logs, one per message.  The message-id: header might be a good file name for the logs.

So maybe if the -s argument were a directory, rather than a file, that would indicate to spamd that one desires this format.
Comment 1 Bill Cole 2019-07-19 16:13:36 UTC
Interesting concept, although normally each file would be tiny. Are you thinking about this as an adjunct to running spamd with debug (-D) flags?
Comment 2 Brian J. Murrell 2019-07-19 16:36:59 UTC
Ah, yes.  Sorry I was not more clear about that.  You are right, in normal operations there wouldn't be much in them, but yes, indeed, when used with debugging enabled, like say to figure out why spams are not being identified, being able to view the debugging for just a single spam in a single file would be very useful.