logging

package
v1.0.53 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: AGPL-3.0 Imports: 10 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()

func Error

func Error(format string)

func Errorf added in v1.0.43

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

func Log added in v1.0.43

func Log(format string)

func Logf added in v1.0.43

func Logf(format string, args ...interface{})

Types

type LogType

type LogType string
const (
	AccessType LogType = LogType("access")
	ErrorType  LogType = LogType("error")
)

type Logger

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

func GetLogger

func GetLogger(logType LogType) *Logger

Jump to

Keyboard shortcuts

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