Then we need to start the Docker daemon process with the option ‘-l’ and specify the level of the logging. So first we need to stop the Docker daemon process using the below command: We need to stop the Docker process in either case. We can enable Docker daemon logging by command or editing the ‘daemon.json’ file.
![docker syslog driver docker syslog driver](https://picb.zhimg.com/v2-ddc84c50264e9eacd1aae7c7de0cdfd1_r.jpg)
Error: It provides all the errors generated by the daemon process.Info: It provides all types of information and errors generated by the Docker daemon process.Debug: It provides each and every possible information generated by the Docker daemon process.There are four levels of logging available at the daemon level. Docker logging at daemon levelĭaemon level docker logging is used to fix issues and errors that are generated by Docker daemon itself. We use the ‘docker log’ command to check the logs generated by any container. We can set options in the daemon.json file as json object with the key ‘log-opts’ if logging driver allows doing so.
#Docker syslog driver update
We need to update the ‘daemon.json’ file to explicitly configure the default logging driver to any other logging driver, the ‘daemon.json’ file is located in /etc/docker/ on Linux hosts or c:\programdata\docker\config\ on windows server hosts. Web development, programming languages, Software testing & others Start Your Free Software Development Course