epilog

Version, currently 1.1.13 versions

github.com/molnarmark/epilog

🏆 Elegant, fancy console logger for Crystal

28 stars
0 dependents
License: MIT

Nothing has been indexed for 1.1.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

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

Then run:

shards install

shard.yml

No shard.yml has been indexed for 1.1.1. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

# 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