logflags

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 13 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any added in v1.5.1

func Any() bool

Any returns true if any logging is enabled.

func Close added in v1.3.0

func Close()

Close closes the logger output.

func DAP added in v1.4.1

func DAP() bool

DAP returns true if dap package should log.

func DAPLogger added in v1.4.1

func DAPLogger() *logrus.Entry

DAPLogger returns a logger for dap package.

func DebugLineErrors

func DebugLineErrors() bool

DebugLineErrors returns true if pkg/dwarf/line should log its recoverable errors.

func Debugger

func Debugger() bool

Debugger returns true if the debugger package should log.

func DebuggerLogger added in v1.3.0

func DebuggerLogger() *logrus.Entry

DebuggerLogger returns a logger for the debugger package.

func FnCall

func FnCall() bool

FnCall returns true if the function call protocol should be logged.

func FnCallLogger added in v1.3.0

func FnCallLogger() *logrus.Entry

func GdbWire

func GdbWire() bool

GdbWire returns true if the gdbserial package should log all the packets exchanged with the stub.

func GdbWireLogger added in v1.3.0

func GdbWireLogger() *logrus.Entry

GdbWireLogger returns a configured logger for the gdbserial wire protocol.

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 Minidump added in v1.2.0

func Minidump() bool

Minidump returns true if the minidump loader should be logged.

func MinidumpLogger added in v1.3.0

func MinidumpLogger() *logrus.Entry

func RPC

func RPC() bool

RPC returns true if RPC messages should be logged.

func RPCLogger added in v1.3.0

func RPCLogger() *logrus.Entry

RPCLogger returns a logger for RPC messages.

func Setup

func Setup(logFlag bool, logstr, logDest string) error

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 added in v1.3.0

func WriteAPIListeningMessage(addr net.Addr)

WriteAPIListeningMessage writes the "API server listening" message in headless mode.

func WriteDAPListeningMessage added in v1.4.1

func WriteDAPListeningMessage(addr net.Addr)

WriteDAPListeningMessage writes the "DAP server listening" message in dap mode.

func WriteError added in v1.7.3

func WriteError(msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL