Documentation
¶
Index ¶
- type AppLogger
- func (l *AppLogger) Close(locationKey string)
- func (l *AppLogger) Forget(locationKey string)
- func (l *AppLogger) Get(locationKey string) domain.LoggerI
- func (l *AppLogger) Init()
- func (l *AppLogger) Log(locationKey string, source string, message string)
- func (l *AppLogger) Open(locationKey string) domain.LoggerI
- type AppspaceLogger
- func (l *AppspaceLogger) Close(appspaceID domain.AppspaceID)
- func (l *AppspaceLogger) Forget(appspaceID domain.AppspaceID)
- func (l *AppspaceLogger) Get(appspaceID domain.AppspaceID) domain.LoggerI
- func (l *AppspaceLogger) Init()
- func (l *AppspaceLogger) Log(appspaceID domain.AppspaceID, source string, message string)
- func (l *AppspaceLogger) Open(appspaceID domain.AppspaceID) domain.LoggerI
- type Logger
- func (l *Logger) GetLastBytes(n int64) (domain.LogChunk, error)
- func (l *Logger) Log(source, message string)
- func (l *Logger) SubscribeEntries(n int64) (domain.LogChunk, <-chan string, error)
- func (l *Logger) SubscribeStatus() (bool, <-chan bool)
- func (l *Logger) UnsubscribeEntries(ch <-chan string)
- func (l *Logger) UnsubscribeStatus(ch <-chan bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogger ¶
type AppLogger struct { AppLocation2Path interface { Meta(string) string } `checkinject:"required"` // contains filtered or unexported fields }
AppLogger opens and manages logs for each app-version (identified by location key.) Used when running sandbox to get app routes, etc... for example.
func (*AppLogger) Forget ¶
Forget about this locationKey This closes the log file and drops all subscriptions
type AppspaceLogger ¶
type AppspaceLogger struct { AppspaceModel interface { GetFromID(domain.AppspaceID) (*domain.Appspace, error) } `checkinject:"required"` AppspaceStatus interface { IsLockedClosed(domain.AppspaceID) bool } `checkinject:"required"` Config *domain.RuntimeConfig // contains filtered or unexported fields }
AppspaceLogger opens and manages appspace loggers
func (*AppspaceLogger) Close ¶
func (l *AppspaceLogger) Close(appspaceID domain.AppspaceID)
Close the log file for logger for appspace ID
func (*AppspaceLogger) Forget ¶
func (l *AppspaceLogger) Forget(appspaceID domain.AppspaceID)
Forget about logger for appspace ID This closes the log file and drops all subscriptions
func (*AppspaceLogger) Get ¶
func (l *AppspaceLogger) Get(appspaceID domain.AppspaceID) domain.LoggerI
Get a reference to logger for appspaceID
func (*AppspaceLogger) Log ¶
func (l *AppspaceLogger) Log(appspaceID domain.AppspaceID, source string, message string)
Log writes to the log file for the appspace
func (*AppspaceLogger) Open ¶
func (l *AppspaceLogger) Open(appspaceID domain.AppspaceID) domain.LoggerI
Open the log file and return the logger for appspace ID
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger system sufficiently genric to support app and appspace logs
func (*Logger) GetLastBytes ¶
GetLastBytes returns the log lines found in the last n bytes of the file.