logging

package
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later DMRHub - Run a DMR network server in a single binary Copyright (C) 2023 Jacob McSwain

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero 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 Affero General Public License for more details.

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

The source code is available at <https://github.com/USA-RedDragon/DMRHub>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Types

type LogType

type LogType string
const (
	Access LogType = LogType("access")
	Error  LogType = LogType("error")
)

type Logger

type Logger struct {
	Writer io.Writer
	// contains filtered or unexported fields
}

func GetLogger

func GetLogger(logType LogType) *Logger

func (*Logger) Log

func (l *Logger) Log(function interface{}, format string)

Pass the function itself to the logger

func (*Logger) Logf

func (l *Logger) Logf(function interface{}, format string, args ...interface{})

func (*Logger) Relay

func (l *Logger) Relay()

Jump to

Keyboard shortcuts

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