Where is the Docker daemon log?

It depends on your OS. Here are the few locations, with commands for few Operating Systems: Ubuntu (old using upstart ) – /var/log/upstart/docker.log Ubuntu (new using systemd ) – sudo journalctl -fu docker.service Amazon Linux AMI – /var/log/docker Boot2Docker – /var/log/docker.log Debian GNU/Linux – /var/log/daemon.log CentOS – /var/log/message | grep docker CoreOS – journalctl -u docker.service Fedora – journalctl -u docker.service Red Hat … Read more

Configure Node.js to log to a file instead of the console

Update 2013 – This was written around Node v0.2 and v0.4; There are much better utilites now around logging. I highly recommend Winston Update Late 2013 – We still use winston, but now with a logger library to wrap the functionality around logging of custom objects and formatting. Here is a sample of our logger.js https://gist.github.com/rtgibbons/7354879 Should be as … Read more

Log.INFO vs. Log.DEBUG

I usually try to use it like this: DEBUG: Information interesting for Developers, when trying to debug a problem. INFO: Information interesting for Support staff trying to figure out the context of a given error WARN to FATAL: Problems and Errors depending on level of damage.