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".
Attachment:
squid.conf
Description: Binary data
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users