hybridgroup / cylon

JavaScript framework for robotics, drones, and the Internet of Things (IoT)
https://cylonjs.com
Other
4.2k stars 360 forks source link

Simplify logger #305

Closed stewart closed 9 years ago

stewart commented 9 years ago

This PR adds a simplified logging system, with two primary methods:

This helps dramatically simplify logging infrastructure, as well as enabling simpler toggling of log modes.

The configuration values for the Logger have also been updated:

Additionally, the following CLI flags are supported re: logging:

Deprecation notices have been added for old log methods, with first-run messages to this effect.

This change should have negligible impact on end-users, with minor inconvenience for library developers, as they need to switch their logging function calls over.

Logging configuration is still possible via both Cylon.Config.update(Object), and directly calling Cylon.Logger.setup(Object).

deadprogram commented 9 years ago

:scissors: :paperclip: