mconnect - KDE Connect protocol implementation in Vala/C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
311 B

  1. package logger
  2. import (
  3. "os"
  4. "github.com/Sirupsen/logrus"
  5. )
  6. var log *logrus.Logger
  7. func init() {
  8. log = &logrus.Logger{
  9. Out: os.Stderr,
  10. Formatter: &logrus.TextFormatter{
  11. FullTimestamp: true,
  12. },
  13. Hooks: make(logrus.LevelHooks),
  14. Level: logrus.DebugLevel,
  15. }
  16. }
  17. func New() Logger {
  18. return log
  19. }