epilog~crystalrealm

Elegant, fancy console logger console-logger console-log
1.1.2 Latest release released

Epilog

Open Source Love Open Source Love PRs Welcome

Elegant, fancy console logger for Crystal

Epilog is heavily inspired by Nuxt's consola. The API is basically the same.



Installation

Add this to your application's shard.yml:

dependencies:
  epilog:
    github: crystalrealm/epilog

Usage

require "epilog"

# The default reporter is the fancy one. However, if you specify anything else, you get the minimal one.
logger = Epilog::Logger.new "minimal"
# or, logger = Epilog::Logger.new

logger.success "success!"
logger.error "error!"
logger.fatal "fatal!"
logger.warn "warn!"
logger.log "log!"
logger.info "info!"
logger.start "start!"
logger.ready "ready!"
logger.debug "debug!"
logger.trace "trace!"

API

Epilog exposes 10 methods to use.

  • success
  • error
  • fatal
  • warn
  • log
  • info
  • start
  • ready
  • debug
  • trace

Contributing

  1. Fork it (https://github.com/crystalrealm/epilog/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

epilog:
  github: crystalrealm/epilog
  version: ~> 1.1.2
License MIT
Crystal 0.26.0

Authors

Dependencies 1

Development Dependencies 0

Dependents 1

Similar shards

Last synced .
search fire star recently