Documentation
¶
Index ¶
Constants ¶
View Source
const ( KiloByte = 1024 MegaByte = 1024 * KiloByte DefaultCapacityBytes = 1 * MegaByte )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILogger ¶
type ILogger interface { Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) DPanic(args ...interface{}) // Development panic - panics only in development mode Panic(args ...interface{}) Fatal(args ...interface{}) Debugf(template string, args ...interface{}) Infof(template string, args ...interface{}) Warnf(template string, args ...interface{}) Errorf(template string, args ...interface{}) DPanicf(template string, args ...interface{}) Panicf(template string, args ...interface{}) Fatalf(template string, args ...interface{}) Debugw(msg string, keysAndValues ...interface{}) Infow(msg string, keysAndValues ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Errorw(msg string, keysAndValues ...interface{}) DPanicw(msg string, keysAndValues ...interface{}) Panicw(msg string, keysAndValues ...interface{}) Fatalw(msg string, keysAndValues ...interface{}) Log(lvl zapcore.Level, msg string, fields ...zapcore.Field) Sync() error Close() error Named(name string) ILogger With(args ...interface{}) ILogger }
type LogStorage ¶
type LogStorage struct { Buffer MyBuf // contains filtered or unexported fields }
func NewLogStorage ¶
func NewLogStorage(ID string) *LogStorage
func NewLogStorageWithCapacity ¶
func NewLogStorageWithCapacity(ID string, capBytes uint64) *LogStorage
func (*LogStorage) GetReader ¶
func (l *LogStorage) GetReader() io.Reader
func (*LogStorage) ID ¶
func (l *LogStorage) ID() string
Click to show internal directories.
Click to hide internal directories.