logagent

package
v0.0.0-...-736094d Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * 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. * </p>

* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * 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. * </p>

* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * 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. * </p>

* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * 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. * </p>

* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * 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. * </p>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtcdZapLoggerConfig

func EtcdZapLoggerConfig() zap.Config

Types

type ElsLoggerAgent

type ElsLoggerAgent struct {
}

func NewElsLoggerAgent

func NewElsLoggerAgent() *ElsLoggerAgent

func (*ElsLoggerAgent) Printf

func (s *ElsLoggerAgent) Printf(format string, v ...interface{})

type EtcdLoggerAgent

type EtcdLoggerAgent struct {
}

func NewEtcdLoggerAgent

func NewEtcdLoggerAgent() *EtcdLoggerAgent

func (*EtcdLoggerAgent) Error

func (s *EtcdLoggerAgent) Error(args ...interface{})

Error logs to ERROR log. Arguments are handled in the manner of fmt.Print.

func (*EtcdLoggerAgent) Errorf

func (s *EtcdLoggerAgent) Errorf(format string, args ...interface{})

Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf.

func (*EtcdLoggerAgent) Errorln

func (s *EtcdLoggerAgent) Errorln(args ...interface{})

Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println.

func (*EtcdLoggerAgent) Fatal

func (s *EtcdLoggerAgent) Fatal(args ...interface{})

Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Print. gRPC ensures that all Fatal logs will exit with os.Exit(1). Implementations may also call os.Exit() with a non-zero exit code.

func (*EtcdLoggerAgent) Fatalf

func (s *EtcdLoggerAgent) Fatalf(format string, args ...interface{})

Fatalf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. gRPC ensures that all Fatal logs will exit with os.Exit(1). Implementations may also call os.Exit() with a non-zero exit code.

func (*EtcdLoggerAgent) Fatalln

func (s *EtcdLoggerAgent) Fatalln(args ...interface{})

Fatalln logs to ERROR log. Arguments are handled in the manner of fmt.Println. gRPC ensures that all Fatal logs will exit with os.Exit(1). Implementations may also call os.Exit() with a non-zero exit code.

func (*EtcdLoggerAgent) Info

func (s *EtcdLoggerAgent) Info(args ...interface{})

Info logs to INFO log. Arguments are handled in the manner of fmt.Print.

func (*EtcdLoggerAgent) Infof

func (s *EtcdLoggerAgent) Infof(format string, args ...interface{})

Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf.

func (*EtcdLoggerAgent) Infoln

func (s *EtcdLoggerAgent) Infoln(args ...interface{})

Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println.

func (*EtcdLoggerAgent) V

func (s *EtcdLoggerAgent) V(l int) bool

V reports whether verbosity level l is at least the requested verbose level.

func (*EtcdLoggerAgent) Warning

func (s *EtcdLoggerAgent) Warning(args ...interface{})

Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print.

func (*EtcdLoggerAgent) Warningf

func (s *EtcdLoggerAgent) Warningf(format string, args ...interface{})

Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf.

func (*EtcdLoggerAgent) Warningln

func (s *EtcdLoggerAgent) Warningln(args ...interface{})

Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println.

type MetricsLoggerAgent

type MetricsLoggerAgent struct {
}

func NewMetricsLoggerAgent

func NewMetricsLoggerAgent() *MetricsLoggerAgent

func (*MetricsLoggerAgent) Printf

func (s *MetricsLoggerAgent) Printf(format string, v ...interface{})

Info logs to INFO log. Arguments are handled in the manner of fmt.Print.

type RocketmqLoggerAgent

type RocketmqLoggerAgent struct {
}

func NewRocketmqLoggerAgent

func NewRocketmqLoggerAgent() *RocketmqLoggerAgent

func (*RocketmqLoggerAgent) Debug

func (s *RocketmqLoggerAgent) Debug(msg string, fields map[string]interface{})

func (*RocketmqLoggerAgent) Error

func (s *RocketmqLoggerAgent) Error(msg string, fields map[string]interface{})

func (*RocketmqLoggerAgent) Fatal

func (s *RocketmqLoggerAgent) Fatal(msg string, fields map[string]interface{})

func (*RocketmqLoggerAgent) Info

func (s *RocketmqLoggerAgent) Info(msg string, fields map[string]interface{})

func (*RocketmqLoggerAgent) Warning

func (s *RocketmqLoggerAgent) Warning(msg string, fields map[string]interface{})

type ZkLoggerAgent

type ZkLoggerAgent struct {
}

func NewZkLoggerAgent

func NewZkLoggerAgent() *ZkLoggerAgent

func (*ZkLoggerAgent) Printf

func (s *ZkLoggerAgent) Printf(template string, args ...interface{})

Jump to

Keyboard shortcuts

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