diff --git a/README.md b/README.md index 7f0a686..31fbec1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # logger -TODO: Write a description here +This is a logging library that utilizes crystal macros for appending codebase metadata (Class & Calling function) into the log string for easier debugging ## Installation @@ -9,7 +9,7 @@ TODO: Write a description here ```yaml dependencies: logger: - github: your-github-user/logger + git: https://git.arcanium.tech/tristan/logger ``` 2. Run `shards install` @@ -20,20 +20,7 @@ TODO: Write a description here require "logger" ``` -TODO: Write usage instructions here - -## Development - -TODO: Write development instructions here - -## Contributing - -1. Fork it () -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 -- [Tristan Ancelet](https://github.com/your-github-user) - creator and maintainer +- [Tristan Ancelet](https://git.arcanium.tech/tristan) - creator and maintainer diff --git a/src/logger.cr b/src/logger.cr index 2b35db5..023a259 100644 --- a/src/logger.cr +++ b/src/logger.cr @@ -101,6 +101,7 @@ module Logger synchronize { time = Time.local STDERR.puts [time, level.to_s.colorize(_level.color), message].join(" : ") + raise "ERROR : Fatal error detected (#{message})" if level == "FATAL" } end end