log

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package log provides the both file and console (general) logging capabilities to spacemesh modules such as app and identity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug prints formatted debug level log message.

func Error

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

Error prints formatted error level log message.

func Info

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

Info prints formatted info level log message.

func InitSpacemeshLoggingSystem

func InitSpacemeshLoggingSystem(dataFolderPath string, logFileName string)

InitSpacemeshLoggingSystem initializes app logging system.

func Warning

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

Warning prints formatted warning level log message.

Types

type Log

type Log struct {
	*logging.Logger
}

Log is an exported type that embeds our logger. logging library can be replaced as long as it implements same functionality used across the project.

var AppLog Log

smlogger is the local app singleton logger.

func New

func New(module string, dataFolderPath string, logFileName string) Log

New creates a logger for a module. e.g. p2p instance logger.

Jump to

Keyboard shortcuts

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