Log Variables
  • 29 Oct 2024
  • Dark
    Light
  • PDF

Log Variables

  • Dark
    Light
  • PDF

Article summary

GATEWAY_LOG_CONSOLE_JSON

Whether the console logs should be displayed in the default format shown here:

2024-02-14T09:18:28-06:00 INF grpc server is starting up.

Alternately, console logs can be displayed in JSON as shown here:

{"level":"info","time":"2024-02-14T09:18:28-06:00","message":"grpc server is starting up"}

Environment Variable

GATEWAY_LOG_CONSOLE_JSON

File

Section: log
Key: console_json

Default

false


GATEWAY_LOG_FILE_ENABLED

Controls whether or not gateway should write to a log file.

Environment Variable

GATEWAY_LOG_FILE_ENABLED

File

Section: log
Key: file_enabled

Default

true


GATEWAY_LOG_FILE_JSON

Whether the file logs should be displayed in the default format shown here:

2024-02-14T09:18:28-06:00 INF grpc server is starting up.

Alternately, file logs can be displayed in JSON as shown here:

{"level":"info","time":"2024-02-14T09:18:28-06:00","message":"grpc server is starting up"}

Environment Variable

GATEWAY_LOG_FILE_JSON

File

Section: log
Key: file_json

Default

false


GATEWAY_LOG_LEVEL

The verbosity of the logs that gateway will display to the console and file
logs.

Environment Variable

GATEWAY_LOG_LEVEL

File

Section: log
Key: level

Default

INFO

Log Levels

["TRACE", "DEBUG", "INFO", "WARN", "ERROR"]


GATEWAY_LOG_SERVER_DIR

The directory to place the gateway.log file when launched as a server. When gateway is not launched as a server, logs will be placed in GATEWAY_APPLICATION_WORKING_DIR.

Environment Variable

GATEWAY_LOG_SERVER_DIR

File

Section: log
Key: server_dir

Default

/var/log/gateway


GATEWAY_LOG_TIMESTAMP_TIMEZONE

Allows you to specify a timezone that timestamps will be displayed within gateway logs. For example:

2024-05-03T10:36:55-05:00 INF using local connection

Timezones are shown in UTC by default. If local is set, gateway will use your machine's timezone. Additionally, you can set a tz identifier such as America/New_York.

Environment Variable

GATEWAY_LOG_TIMESTAMP_TIMEZONE

File

Section: log
Key: timestamp_timezone

Default

utc

Timezone Values

["utc", "local", ...any tz identifier]


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.