[cups] empty page_log file
Mike Sweet
msweet at apple.com
Fri Jun 17 14:17:34 PDT 2016
The total values are computed from the printers page counters, while the others are generated by the filters.
Sent from my iPhone
> On Jun 17, 2016, at 10:22 AM, Alex Korobkin <korobkin+cups at gmail.com> wrote:
>
> Btw, I'm curious why CUPS sometimes puts total number of pages into the
> log, but not every time.
>
> I mean, sometimes it is
> printer1 userA job# time 1 1 ..
> printer1 userA job# time 2 1 ..
> printer1 userA job# time 3 1 ..
>
> And sometimes it is
> printer1 userB job# time 1 1 ..
> printer1 userB job# time 2 1 ..
> printer1 userB job# time total 2 ..
>
> What makes it omit writing total for certain jobs?
>
> On Fri, Jun 10, 2016 at 1:37 PM, Brian Potkin <claremont102 at gmail.com>
> wrote:
>
>> On Fri 10 Jun 2016 at 16:56:22 +0200, Helge Blischke wrote:
>>
>>>> Am 10.06.2016 um 14:40 schrieb Brian Potkin <claremont102 at gmail.com>:
>>>>
>>>> cups-filter 1.9.0 introduces page logging for the pdftopdf filter. It
>>>> will do page logging on behalf of printer drivers such as hpps which
>>>> (at present) do not do it themselves.
>>>
>>> There is a directive PageLogFormat for use in cupsd.conf. It uses a
>>> template defining the desired format for the page_log entries (see the
>>> online help for details.
>>>
>>> If this keyword is *not* present, the default format is used. But, if
>>> the keyword is used without an argument, this means that *no* page log
>>> entries are written, and an empty page_log file is created.
>>
>> Indeed, yes. PageLogFormat has to be non-empty or absent from cupsd.conf
>> for pdftopdf to do page logging. It will do it when it is the last
>> filter before the job is sent to the printer, something it doesn't do at
>> present.
>>
>> When it isn't the final filter it checks what the last filter in the
>> filtering chain is. If it gstopxl, foomatic-rip or hpps it logs to the
>> page_log. Otherwise, it lets the last filter do its own thing.
>>
>> Regards,
>>
>> Brian.
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
>
>
>
> --
> -Alex
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
More information about the cups
mailing list