log

package
v0.0.0-...-42befb5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(module string, dataFolderPath string, logFileName string) *logging.Logger

CreateLogger creates a logger for a module. e.g. local node logger.

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 PrettyID

func PrettyID(id string) string

PrettyID formats ID.

func Warning

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

Warning prints formatted warning level log message.

Types

type SpacemeshLogger

type SpacemeshLogger struct {
	Logger *logging.Logger
}

SpacemeshLogger is a custom logger.

Jump to

Keyboard shortcuts

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