epilog

Version, currently 1.1.23 versions

github.com/molnarmark/epilog

🏆 Elegant, fancy console logger for Crystal

28 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  epilog:
    github: molnarmark/epilog
    version: ~> 1.1.2

Then run:

shards install

shard.yml

Crystal
0.26.0
License
MIT
Author
Mark Molnar <molnarpw@gmail.com>

Dependencies

Runtime Dependencies

README

# Epilog

[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

> Elegant, fancy console logger for Crystal

Epilog is heavily inspired by Nuxt's [consola](https://github.com/nuxt/consola).
The API is basically the same.

<div align="center">
  <br>
    <img src="./img/showcase.png">
  <br>
</div>

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  epilog:
    github: crystalrealm/epilog
```

## Usage

```crystal
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

- [molnarmark](https://github.com/molnarmark) Mark Molnar - creator, maintainer