Documentation ¶
Index ¶
- func Any() bool
- func Close()
- func DAP() bool
- func DebugLineErrors() bool
- func Debugger() bool
- func DefaultFormatter() logrus.Formatter
- func FnCall() bool
- func GdbWire() bool
- func LLDBServerOutput() bool
- func Minidump() bool
- func RPC() bool
- func SetLoggerFactory(lf LoggerFactory)
- func Setup(logFlag bool, logstr, logDest string) error
- func Stack() bool
- func WriteAPIListeningMessage(addr net.Addr)
- func WriteDAPListeningMessage(addr net.Addr)
- func WriteError(msg string)
- type Fields
- type Logger
- type LoggerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugLineErrors ¶
func DebugLineErrors() bool
DebugLineErrors returns true if pkg/dwarf/line should log its recoverable errors.
func DefaultFormatter ¶
DefaultFormatter provides a simplified version of logrus.TextFormatter that doesn't make logs unreadable when they are output to a text file or to a terminal that doesn't support colors.
func FnCall ¶
func FnCall() bool
FnCall returns true if the function call protocol should be logged.
func GdbWire ¶
func GdbWire() bool
GdbWire returns true if the gdbserial package should log all the packets exchanged with the stub.
func LLDBServerOutput ¶
func LLDBServerOutput() bool
LLDBServerOutput returns true if the output of the LLDB server should be redirected to standard output instead of suppressed.
func SetLoggerFactory ¶
func SetLoggerFactory(lf LoggerFactory)
SetLoggerFactory will ensure that every Logger created by this package, will be now created by the given LoggerFactory. Default behavior will be a logrus based Logger instance using DefaultFormatter.
func Setup ¶
Setup sets debugger flags based on the contents of logstr. If logDest is not empty logs will be redirected to the file descriptor or file path specified by logDest.
func WriteAPIListeningMessage ¶
WriteAPIListeningMessage writes the "API server listening" message in headless mode.
func WriteDAPListeningMessage ¶
WriteDAPListeningMessage writes the "DAP server listening" message in dap mode.
func WriteError ¶
func WriteError(msg string)
Types ¶
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) }
Logger represents a generic interface for logging inside of Delve codebase.
func DebugLineLogger ¶
func DebugLineLogger() Logger
DebugLineLogger returns a logger for the dwarf/line package.
func DebuggerLogger ¶
func DebuggerLogger() Logger
DebuggerLogger returns a logger for the debugger package.
func FnCallLogger ¶
func FnCallLogger() Logger
func GdbWireLogger ¶
func GdbWireLogger() Logger
GdbWireLogger returns a configured logger for the gdbserial wire protocol.
func MinidumpLogger ¶
func MinidumpLogger() Logger
func StackLogger ¶
func StackLogger() Logger