221k views
4 votes
You are using the journald daemon for logging your system messages. If you want to store notice messages but not info or debug messages, which of the following parameters would you set in the configuration file?

a) LogLevel=notice
b) LogLevel=info
c) LogLevel=debug
d) LogLevel=warning

User Gprivitera
by
7.3k points

1 Answer

2 votes

Final answer:

To log notice messages and exclude info and debug messages in journald, set the configuration parameter to LogLevel=notice. This logs all messages from notice up to emergency, managing log verbosity efficiently.

Step-by-step explanation:

If you are using the journald daemon for system logging and you want to store notice messages but not info or debug messages, you should set the parameter in the journald configuration file to LogLevel=notice. This setting ensures that all messages from notice up to emergency will be logged, while excluding less severe messages like info and debug. Logging levels are a critical aspect of managing system logs, as they allow you to control the verbosity of the log messages and hence manage the volume of log data effectively.

User Kattie
by
7.3k points