[squid-users] Setting logfile_daemon
Byron Mackay
bqmackay at gmail.com
Thu Jul 2 21:07:36 UTC 2015
I'm running Squid 3.3.8 on Ubuntu inside a Docker container and I want to
add a custom logger. I want to keep what the current logger is doing and
append a few things, so I simply copied the default logger's source (
http://www.squid-cache.org/Doc/code/log__file__daemon_8cc_source.html) and
put it into another file. Then in my config I set that file to be the
daemon using logfile_daemon and setting the path to the file. When I spin
up the server, I get the following:
2015/07/02 20:24:06| logfileHandleWrite: daemon:/var/log/squid3/access.log:
error writing ((32) Broken pipe) 2015/07/02 20:24:06| Closing HTTP port
[::]:3128 2015/07/02 20:24:06| storeDirWriteCleanLogs: Starting...
2015/07/02 20:24:06| Finished. Wrote 0 entries. 2015/07/02 20:24:06| Took
0.00 seconds ( 0.00 entries/sec). FATAL: I don't handle this error well!
2015/07/02 20:24:06| Closing Pinger socket on FD 18
I've tried a number of things (including making a skeleton version with
just the methods and no content) and looked all over online and in the
Squid 3.1 beginner book (I know, out of date, but still a good reference),
but I haven't found a thing. Am I missing something obvious here? I feel
like it doesn't like something inside my logger, but I can't be sure based
on the error. Attached is my config file. The line of interest is
"logfile_daemon /usr/lib/squid3/my_logger".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150702/84133b5d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: squid.conf
Type: application/octet-stream
Size: 2797 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150702/84133b5d/attachment.obj>
More information about the squid-users
mailing list