mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-22 16:13:31 +01:00
891ba277b1
Initial modification to support mobile client Export necessary interfaces for Android framework
18 lines
487 B
Go
18 lines
487 B
Go
package formatter
|
|
|
|
import "github.com/sirupsen/logrus"
|
|
|
|
// SetTextFormatter set the text formatter for given logger.
|
|
func SetTextFormatter(logger *logrus.Logger) {
|
|
logger.Formatter = NewTextFormatter()
|
|
logger.ReportCaller = true
|
|
logger.AddHook(NewContextHook())
|
|
}
|
|
|
|
// SetLogcatFormatter set the logcat formatter for given logger.
|
|
func SetLogcatFormatter(logger *logrus.Logger) {
|
|
logger.Formatter = NewLogcatFormatter()
|
|
logger.ReportCaller = true
|
|
logger.AddHook(NewContextHook())
|
|
}
|