Documentation
¶
Overview ¶
Package observability provides local file logging.
Index ¶
Constants ¶
View Source
const HistoryFileName = "history.json"
HistoryFileName is the history file name
Variables ¶
View Source
var HistoryFilePath = filepath.Join(LogDir, HistoryFileName)
HistoryFilePath is the full path to the history file
View Source
var LogDir = filepath.Join(os.Getenv("HOME"), ".yapi")
LogDir is the yapi data directory
Functions ¶
Types ¶
type FileLoggerClient ¶
type FileLoggerClient struct {
// contains filtered or unexported fields
}
FileLoggerClient logs events to a file
func NewFileLoggerClient ¶
func NewFileLoggerClient(path, version, commit string) (*FileLoggerClient, error)
NewFileLoggerClient creates a new file logger client
func (*FileLoggerClient) Close ¶
func (f *FileLoggerClient) Close() error
Close merges all tracked events and writes them to the log file.
Click to show internal directories.
Click to hide internal directories.