Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 754 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 754 Bytes

go-android-log

Native Android logging bindings for Go apps. Recommended to use with gomobile.

Install

go get github.com/Securepoint/go-android-log

Usage

logger := androidlog.NewLogger("MyPackage")
logger.Info("Application started")
logger.Debug("Debug message")
logger.Error("Something went wrong")

Formatted messages

logger.Infof("Application started at %s", time.Now())
logger.Debugf("Debug message: %d", 42)
logger.Errorf("Something went wrong: %v", err)

Documentation

Go Reference

License

MIT