jeff-winn / homebridge-automower-platform

A platform plugin for Homebridge to connect your Husqvarna Automower and Gardena Smart robotic lawn mowers to Apple HomeKit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging in HOOBS looks terrible

jeff-winn opened this issue · comments

Is your feature request related to a problem? Please describe:

The logging when it shows up within HOOBS is really bad. The character color codes aren’t being intercepted so they are in the log message.

Describe the solution you'd like:

I would like the logging to occur normally and not look all weird.

Describe alternatives you've considered:

Additional context:

Mower:

  • Year:
  • Model:

HOOBS likely has a more robust logging mechanism than what Homebridge provides. With the PlatformLogger interface in the codebase, it might be better to just add an adapter implementation for the Homebridge implementation.

The only question then is usability as the debug setting will only work when both Homebridge itself and the plug-in is set to log debug messages.

The adapter class should really be named Default around the Homebridge supplied logger. This type should be used unless explicitly modified.