Documentation ¶
Overview ¶
Copyright 2019 The Blackspace Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func AddFlags(fs *pflag.FlagSet)
- func FlushLogs()
- func GlogSetter(val string) (string, error)
- func InitLogs()
- func NewLogger(prefix string) *log.Logger
- type KlogWriter
- type LogFormatRegistry
- func (lfr *LogFormatRegistry) Delete(name string) error
- func (lfr *LogFormatRegistry) Freeze()
- func (lfr *LogFormatRegistry) Get(name string) (logr.Logger, error)
- func (lfr *LogFormatRegistry) List() []string
- func (lfr *LogFormatRegistry) Register(name string, logger logr.Logger) error
- func (lfr *LogFormatRegistry) Set(name string, logger logr.Logger) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the same value as the global flags.
func GlogSetter ¶
GlogSetter is a setter to set glog level.
Types ¶
type KlogWriter ¶
type KlogWriter struct{}
KlogWriter serves as a bridge between the standard log package and the glog package.
type LogFormatRegistry ¶
type LogFormatRegistry struct {
// contains filtered or unexported fields
}
LogFormatRegistry store klog format registry
func NewLogFormatRegistry ¶
func NewLogFormatRegistry() *LogFormatRegistry
NewLogFormatRegistry return new init LogFormatRegistry struct
func (*LogFormatRegistry) Delete ¶
func (lfr *LogFormatRegistry) Delete(name string) error
Delete specified log format logger
func (*LogFormatRegistry) Freeze ¶
func (lfr *LogFormatRegistry) Freeze()
Freeze freezes the log format registry
func (*LogFormatRegistry) Get ¶
func (lfr *LogFormatRegistry) Get(name string) (logr.Logger, error)
Get specified log format logger
func (*LogFormatRegistry) List ¶
func (lfr *LogFormatRegistry) List() []string
List names of registered log formats (sorted)
Directories ¶
Path | Synopsis |
---|---|
Package datapol contains functions to determine if objects contain sensitive data to e.g.
|
Package datapol contains functions to determine if objects contain sensitive data to e.g. |