log

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2020 A. Jensen <jensen.aaro@gmail.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2020 A. Jensen <jensen.aaro@gmail.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2020 A. Jensen <jensen.aaro@gmail.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2020 A. Jensen <jensen.aaro@gmail.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Logger(logID string, opts ...logging.LoggerOption) Logger
	Close() error
}

func NewGkeClient

func NewGkeClient(ctx context.Context, parent string) (Client, error)

func NewStandardClient

func NewStandardClient(writer io.Writer) Client

type GkeClient

type GkeClient struct {
	// contains filtered or unexported fields
}

func (GkeClient) Close

func (g GkeClient) Close() error

func (GkeClient) Logger

func (g GkeClient) Logger(logID string, opts ...logging.LoggerOption) Logger

type GkeLogger

type GkeLogger struct {
	*logging.Logger
}

type Logger

type Logger interface {
	StandardLogger(severity logging.Severity) *log.Logger
	Log(entry logging.Entry)
	Flush() error
}

type MultiClient

type MultiClient []Client

func (MultiClient) Close

func (mc MultiClient) Close() error

func (MultiClient) Logger

func (mc MultiClient) Logger(logID string, opts ...logging.LoggerOption) Logger

type MultiLogger

type MultiLogger struct {
	// contains filtered or unexported fields
}

func (MultiLogger) Flush

func (m MultiLogger) Flush() error

func (MultiLogger) Log

func (m MultiLogger) Log(entry logging.Entry)

func (MultiLogger) StandardLogger

func (m MultiLogger) StandardLogger(severity logging.Severity) *log.Logger

type StandardClient

type StandardClient struct {
	// contains filtered or unexported fields
}

func (StandardClient) Close

func (s StandardClient) Close() error

func (StandardClient) Logger

func (s StandardClient) Logger(logID string, _ ...logging.LoggerOption) Logger

Jump to

Keyboard shortcuts

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