Discover Packages
github.com/tencentcloud/CubeSandbox/CubeMaster
pkg
base
log
package
Version:
v0.0.0-...-99a0925
Opens a new window with list of versions in this module.
Published: Aug 20, 2026
License: Apache-2.0, BSD-2-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
GetLogger(ctx)
Init(conf)
IsDebug()
OnChangeConf(c)
ReNewLogger(ctx)
Report(ctx, cost, code)
ReportExt(ctx, callee, endpoint, action, calleeAction, cost, code)
TraceReport(reqID, startTime, callee, calleeEndPoint, action, retCode)
WithLogger(ctx, e)
Types
Source Files
Documentation
Documentation
¶
Package log provides log for cube master.
Package log provides log
Variables
func GetLogger(ctx context.Context) *CubeLog.Entry
func Init(conf *Conf)
func IsDebug() bool
func OnChangeConf(c *Conf)
func ReNewLogger(ctx context.Context) context.Context
func Report(ctx context.Context, cost time.Duration, code int64)
func ReportExt(ctx context.Context, callee, endpoint, action, calleeAction string, ...)
func TraceReport(reqID string, startTime time.Time, callee, calleeEndPoint, action string, ...)
func WithLogger(ctx context.Context, e *CubeLog.Entry) context.Context
type Conf
func OnChangeConf(c *Conf )
type Conf struct {
Region string `yaml:"region"`
Cluster string `yaml:"cluster"`
Module string `yaml:"module"`
Path string `yaml:"path"`
FileSize int `yaml:"file_size"`
FileNum int `yaml:"file_num"`
Level string `yaml:"level"`
EnableLogMetric bool `yaml:"enable_log_metric"`
}
UnmarshalYAML accepts the snake_case keys used by the shipped configuration
and the camelCase keys used by older deployments. When both spellings are
present, the shipped snake_case spelling takes precedence.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.