logging

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package logging builds the logger every sqlflow command uses, taking its level from SQLFLOW_LOG_LEVEL exactly as sqlflow.settings does.

Index

Constants

View Source
const DefaultLevel = zapcore.InfoLevel

DefaultLevel matches settings.LOG_LEVEL's default. Notably it is not zap's development default of DEBUG.

View Source
const EnvVar = "SQLFLOW_LOG_LEVEL"

EnvVar is the environment variable the Python engine reads in sqlflow/settings.py.

Variables

This section is empty.

Functions

func Level

func Level() (zapcore.Level, error)

Level resolves SQLFLOW_LOG_LEVEL. An unset or empty value is the default; an unrecognized one is an error, as it is in Python.

func New

func New() (*zap.Logger, error)

New builds the console logger. On an unparseable level it returns both the error and a logger at the default level, so a caller with nowhere to report the failure still has somewhere to log it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL