[squid-users] Logging in Squid external helpers in Docker?
Amos Jeffries
squid3 at treenet.co.nz
Tue Dec 28 05:45:25 UTC 2021
On 28/12/21 18:32, roee klinger wrote:
> Hey,
>
> I am running Squid inside a Docker container, and I am using an external
> helper, I am trying to get the logs from the external helper to go to
> Docker logs (stdout).
>
> Currently, I am writing the logs to a file, which works, but I would
> like to get them to stdout instead, however, Squid redirects all the
> stdout from the external helper to itself, which makes me unable to send
> the logs I want to stdout.
>
> Is there a way for me to send the logs I want to the main stdout of the
> container and not to Squid itself?
stdout of the helper is the channel to respond to Squid requests. Do not
send other information there.
Helper debug info etc should go to the helper stderr which Squid will
deliver to cache.log.
Amos
More information about the squid-users
mailing list