readers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllLines

func ReadAllLines(fileName string, outList *[]string) error

Read from a file.

Types

type LogcatRunner

type LogcatRunner struct {
	ADBClient *adb.Client
	Logcat    *adb.LogcatOptions
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(opts Options) (*LogcatRunner, error)

func (LogcatRunner) CheckIgnore

func (run LogcatRunner) CheckIgnore(logEntry adb.AdbLineEntry) bool

func (LogcatRunner) DispatchEntry

func (run LogcatRunner) DispatchEntry(logEntry *models.LogcatEntry)

func (LogcatRunner) Run

func (run LogcatRunner) Run()

type Logging

type Logging struct {
	// Debug display debug level logging
	Debug bool
	// Debug display debug level logging
	DebugDb bool
	// LogScanErrors log errors related to scanning
	LogScanErrors bool
	// Silence all logging
	Silence bool
}

Logging is log related options

type Options

type Options struct {
	// Logging is logging options
	Logging Logging

	ExcludeFilterList []string

	IncludeFilterList []string

	LogFile string

	MinLevel string

	UseDevice    bool
	UseEmulator  bool
	DeviceSerial string

	PackageName string

	AdbBinPath string

	ClearOutput bool

	ShowTime bool
	ShowPid  bool
}

Options are global github.com/helviojunior/adbcatadbcat options

func NewDefaultOptions

func NewDefaultOptions() *Options

NewDefaultOptions returns Options with some default values

Jump to

Keyboard shortcuts

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