Documentation
¶
Overview ¶
Package repl implements Vinculum's interactive read-eval-print loop, reached via "vinculum serve -i". After normal server startup it presents a prompt at which the user types VCL expressions evaluated against the live, running configuration. Exiting the REPL shuts the server down.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logging ¶
type Logging struct {
// Logger is the base logger handed to the ConfigBuilder via WithLogger.
Logger *zap.Logger
// contains filtered or unexported fields
}
Logging bundles the interactive-mode logger with the handles the REPL needs to manage it: the swappable destination sink and the atomic level that the :loglevel / :quiet / :logs meta-commands manipulate.
func NewInteractiveLogging ¶
NewInteractiveLogging builds the logger used in interactive mode: a console encoder (human-readable + color) writing through zapcore.Lock(sink) at a runtime-adjustable level. The sink starts pointed at os.Stderr (before the line editor exists). Both Config.Logger and Config.UserLogger inherit this sink and level because they derive from this single base logger.