- Newest
- Most votes
- Most comments
Hi,
the "INFO" level you see in the logs generated by Greengrass cannot be changed. Greengrass captures all the output going to stdout and stderr and copies it to its own logs. stdout lines are logged at "INFO" level, stderr lines are logged at "ERROR" level. The loglevel from your own logger will be part of the message. You can redirect your logs to a separate file to have a cleaner log output. You can also extract your original log lines from the message
field in the Greengrass logs.
Hey @johans,
@MassimilianoAWS is right. If you want to have your logs written in your desired level and have them uploaded to cloudwatch. Change your log configuration to write logs into files in your files system and specify a rotation policy. Then, you can use the Log Manager component to target your log files and have your component logs in the log level you desire.
Please note that if you want to use the Log Manager component to filter out your logs by log level, your logs need to be written in a specific JSON format.
Relevant content
- asked 3 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
stderr output is logged at WARN level, not error.