GO_LOG_FORMAT= LIBNAME Statement Option

Specifies the format for trace messages in Go layer logging.

Valid in: SAS/ACCESS LIBNAME statement
Category: Data Set Control
Default: JSON
Interaction: To use this option, you mut also set GO_ENABLE_LOGGING=YES.
Data source: Google BigQuery
Note: Support for this option was added in the January 2024 update for SAS 9.4M7 and in the February 2024 updates for SAS 9.4M8 and SAS Viya 3.5.
See: GO_ENABLE_LOGGING= LIBNAME option, GO_LOG_FILE= LIBNAME option, GO_LOG_LEVEL= LIBNAME option

Table of Contents

Syntax

GO_LOG_FORMAT=JSON | PRETTY | TERM | FILE | PLAIN | MESSAGE | LOGFMT

Required Arguments

JSON

specifies single-line, compact JSON.

PRETTY

specifies multi-line, indented JSON.

TERM

specifies color terminal output

FILE

specifies *.log file style output.

PLAIN

specifies simple level and message format.

MESSAGE

specifies message string only.

LOGFMT

specifies structured logging of key-value pairs.

Last updated: February 3, 2026