Documentation ¶
Overview ¶
Package log provides the both file and console (general) logging capabilities to spacemesh modules such as app and node.
Index ¶
- func CreateLogger(module string, dataFolderPath string, logFileName string) *logging.Logger
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func InitSpacemeshLoggingSystem(dataFolderPath string, logFileName string)
- func PrettyID(id string) string
- func Warning(format string, args ...interface{})
- type SpacemeshLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogger ¶
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 ¶
InitSpacemeshLoggingSystem initializes app logging system.
Types ¶
type SpacemeshLogger ¶
type SpacemeshLogger struct {
Logger *logging.Logger
}
SpacemeshLogger is a custom logger.
Click to show internal directories.
Click to hide internal directories.