[cups] empty page_log file
Johannes Meixner
jsmeix at suse.de
Tue May 31 03:05:58 PDT 2016
Hello,
On May 24 08:38 Spike wrote (excerpt):
> ... thanks for mentioning MaxLogSize 0,
> that's definitely a better choice
Have in mind that in particular with "LogLevel debug" and
even more with "LogLevel debug2" the /var/log/cups/error_log
file could grow fast to enormous size in particular because
some printer drivers may write zillions of driver internal
debug messages to the /var/log/cups/error_log file.
> does anybody have any example of what it takes
> to write to the page_log?
See "man 7 filter" or
http://cups.org/documentation.php/doc-1.7/man-filter.html
-------------------------------------------------------------------
LOG MESSAGES
Messages sent to stderr are generally logged to
printer-state-message attribute and the current ErrorLog.
Each line begins with a standard prefix:
...
PAGE: page-number #-copies
PAGE: total #-pages
Adds an entry to the current PageLog. The first form
adds #-copies to the job-media-sheets-completed attribute.
The second form sets the job-media-sheets-com-pleted
attribute to #-pages.
-------------------------------------------------------------------
I.e. send a message with a 'PAGE:' prefix to stderr
to get an entry in /var/log/cups/page_log and see
http://cups.org/documentation.php/doc-1.7/ref-page_log.html
for the format of PageLog entries (e.g. for CUPS 1.7).
Kind Regards
Johannes Meixner
--
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)
More information about the cups
mailing list