The default log level in systemd is info level.

This is how to check and change the log level.

 

The Current Log Level

To check the log level of systemd , which are currently set, and then use the show command of systemctl command.

 * To set the 'LogLevel' parameter of -p option.

[code]systemctl -pLogLevel show
LogLevel=info[/code]

 

How to Temporarily Change the Log Level

To temporarily change the log level of systemd , use the set-log-level option of systemd-analyze command.

It is an example to change the log level to notice.

[code]systemd-analyze set-log-level notice[/code] 

 

How to Permanently Change the Log Level

To enable the log level you have also changed after a restart of the system , change the 'LogLevel' of /etc/systemd/system.conf.

It is an example to change the log level to notice.

[code]vi /etc/systemd/system.conf
#LogLevel=info
LogLevel=notice
[/code]

 


Twitter_follow

Tweet