Documentation ¶
Overview ¶
Package startuplog contains logic for writing logs related to startup of the workspace.
Index ¶
Constants ¶
View Source
const ( // To avoid excessive DB calls we batch our output. // We'll keep at most 20KB of output in memory at a given time. CoderLoggerMaxLogs = 20 MaxCoderLogSize = 1 << 10 )
View Source
const ( JSONLogTypeDone = "done" JSONLogTypeInfo = "info" JSONLogTypeError = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoderClient ¶
type CoderLogger ¶
type CoderLogger struct {
// contains filtered or unexported fields
}
func (*CoderLogger) Close ¶
func (c *CoderLogger) Close() error
func (*CoderLogger) Error ¶
func (c *CoderLogger) Error(output string)
func (*CoderLogger) Errorf ¶
func (c *CoderLogger) Errorf(format string, a ...any)
func (*CoderLogger) Info ¶
func (c *CoderLogger) Info(output string)
func (*CoderLogger) Infof ¶
func (c *CoderLogger) Infof(format string, a ...any)
type JSONLogger ¶
func (JSONLogger) Close ¶
func (j JSONLogger) Close() error
func (JSONLogger) Error ¶
func (j JSONLogger) Error(output string)
func (JSONLogger) Errorf ¶
func (j JSONLogger) Errorf(format string, a ...any)
func (JSONLogger) Info ¶
func (j JSONLogger) Info(output string)
func (JSONLogger) Infof ¶
func (j JSONLogger) Infof(format string, a ...any)
type Logger ¶
type Logger interface { Info(output string) Infof(format string, a ...any) Error(output string) Errorf(format string, a ...any) Close() error io.Writer }
func MultiLogger ¶
func OpenCoderLogger ¶
type StartupLog ¶
Click to show internal directories.
Click to hide internal directories.