13. Logging Configuration#

cuObjClient uses the JSON configuration selected by the CUFILE_ENV_PATH_JSON environment variable. The logging.max_file_size_mb field controls the maximum log file size in megabytes.

{
  "logging": {
    "level": "ERROR",
    "max_file_size_mb": 32
  }
}

max_file_size_mb defaults to 32. Set it to -1 for no limit. Valid values are -1 or 1 through 4096.

The same setting can be provided with the CUFILE_LOGFILE_MAX_SIZE_MB environment variable:

CUFILE_LOGFILE_MAX_SIZE_MB=32