what
- Update Atmos logs
- Add
logs.file
andlogs.level
toatmos.yaml
- Update docs https://atmos.tools/cli/configuration
why
- Allow specifying a file for Atmos to write logs to
- Allow specifying a log level to control the amount of Atmos logging
Logs
Atmos logs are configured in the logs
section:
logs:
file: "/dev/stdout"
# Supported log levels: Trace, Debug, Info, Warning, Off (Off is the default and is used if logs.level is not set)
level: Info
-
logs.file
- the file to write Atmos logs to. Logs can be written to any file or any standard file descriptor, including/dev/stdout
,/dev/stderr
and/dev/null
). If omitted,/dev/stdout
will be used. The ENV variableATMOS_LOGS_FILE
can also be used to specify the log file -
logs.level
- Log level. Supported log levels areOff
,Trace
,Info
. If the log level is set toOff
, Atmos will not log any messages (note that this does not prevent other tools like Terraform from logging). The ENV variableATMOS_LOGS_LEVEL
can also be used to specify the log level
To prevent Atmos from logging any messages, you can do one of the following:
-
Set
logs.file
or the ENV variableATMOS_LOGS_FILE
to/dev/null
-
Set
logs.level
or the ENV variableATMOS_LOGS_LEVEL
toOff