Committing changes

This commit is contained in:
Tristan Ancelet
2026-03-31 10:25:36 -05:00
parent c427eff500
commit 172e7e7521
2 changed files with 4 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
# logger # 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 ## Installation
@@ -9,7 +9,7 @@ TODO: Write a description here
```yaml ```yaml
dependencies: dependencies:
logger: logger:
github: your-github-user/logger git: https://git.arcanium.tech/tristan/logger
``` ```
2. Run `shards install` 2. Run `shards install`
@@ -20,20 +20,7 @@ TODO: Write a description here
require "logger" require "logger"
``` ```
TODO: Write usage instructions here
## Development
TODO: Write development instructions here
## Contributing
1. Fork it (<https://github.com/your-github-user/logger/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 ## Contributors
- [Tristan Ancelet](https://github.com/your-github-user) - creator and maintainer - [Tristan Ancelet](https://git.arcanium.tech/tristan) - creator and maintainer

View File

@@ -101,6 +101,7 @@ module Logger
synchronize { synchronize {
time = Time.local time = Time.local
STDERR.puts [time, level.to_s.colorize(_level.color), message].join(" : ") STDERR.puts [time, level.to_s.colorize(_level.color), message].join(" : ")
raise "ERROR : Fatal error detected (#{message})" if level == "FATAL"
} }
end end
end end