androidlog

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package androidlog provides Go bindings for Android's native logging system

Index

Constants

priority levels matching android/log.h

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger represents an Android logger instance

func NewLogger

func NewLogger(tag string) *Logger

NewLogger creates a new Logger with the specified tag

func (*Logger) Debug

func (l *Logger) Debug(msg string)

Debug logs a message with DEBUG priority

func (*Logger) Debugf

func (l *Logger) Debugf(format string, args ...interface{})

Debugf logs a formatted message with DEBUG priority

func (*Logger) Error

func (l *Logger) Error(msg string)

Error logs a message with ERROR priority

func (*Logger) Errorf

func (l *Logger) Errorf(format string, args ...interface{})

Errorf logs a formatted message with ERROR priority

func (*Logger) Fatal

func (l *Logger) Fatal(msg string)

Fatal logs a message with FATAL priority

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, args ...interface{})

Fatalf logs a formatted message with FATAL priority

func (*Logger) Info

func (l *Logger) Info(msg string)

Info logs a message with INFO priority

func (*Logger) Infof

func (l *Logger) Infof(format string, args ...interface{})

Infof logs a formatted message with INFO priority

func (*Logger) SetPackageName added in v1.1.0

func (l *Logger) SetPackageName(packageName string) *Logger

func (*Logger) Verbose

func (l *Logger) Verbose(msg string)

Verbose logs a message with VERBOSE priority

func (*Logger) Verbosef

func (l *Logger) Verbosef(format string, args ...interface{})

Verbosef logs a formatted message with VERBOSE priority

func (*Logger) Warn

func (l *Logger) Warn(msg string)

Warn logs a message with WARN priority

func (*Logger) Warnf

func (l *Logger) Warnf(format string, args ...interface{})

Warnf logs a formatted message with WARN priority

Jump to

Keyboard shortcuts

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