# Delogger This gem is a work in progress. TODO ## Installation Add this line to your application's Gemfile: ```ruby gem 'delogger' ``` And then execute: $ bundle Or install it yourself as: $ gem install delogger ## Usage These methods work similarly to `console.log`, but they support [formatting](#formatting): - `DeLogger.debug` - `DeLogger.warn` - `DeLogger.error` By default, DeLogger is **disabled**. To enable it, use `DeLogger.enable()`. You can disable it again using `DeLogger.disable()`. ## Logging levels DeLogger has three logging levels: `debug`, `warn` and `error`. Level can be set using `DeLogger.level` (default is `debug`). (TODO) ## Formatting DeLogger supports string formatting. Syntax: `"(my text).class1.class2"`. Classes are specific for the logger and are not being fetched from stylesheets. Supported classes: `badge`, `debug`, `warn`, `error`, `bold`, `italic`. Example: ```js DeLogger.log("(MyClass#myMethod).badge", "(@akxcv).badge.warn", "(bold).bold", { foo: 'bar' }) ``` ![Example output](/images/example.png?raw=true) TODO ## Development TODO ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/delogger. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).