epilog v1.1.2
Epilog
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
- Fork it (https://github.com/crystalrealm/epilog/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- molnarmark Mark Molnar - creator, maintainer
Repository
epilog
Owner
Statistic
- 29
- 0
- 0
- 0
- 1
- over 3 years ago
- August 30, 2018
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 13:02:56 GMT
Languages