Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanstowe/lumberjack-config-json
Simple Lumberjack configuration from JSON
https://github.com/jonathanstowe/lumberjack-config-json
configuration json logging lumberjack raku
Last synced: about 2 months ago
JSON representation
Simple Lumberjack configuration from JSON
- Host: GitHub
- URL: https://github.com/jonathanstowe/lumberjack-config-json
- Owner: jonathanstowe
- License: artistic-2.0
- Created: 2021-02-05T12:57:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-07T08:43:41.000Z (over 2 years ago)
- Last Synced: 2023-04-22T17:06:59.711Z (almost 2 years ago)
- Topics: configuration, json, logging, lumberjack, raku
- Language: Raku
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# Lumberjack::Config::JSON
Configure the Lumberjack logging framework from JSON
![Build Status](https://github.com/jonathanstowe/Lumberjack-Config-JSON/workflows/CI/badge.svg)
## Synopsis
```raku
use Lumberjack::Config::JSON;
my $config = Lumberjack::Config::JSON.from-json(q:to/EOJ/);
{
"dispatchers" : [
{
"dispatcher" : "Lumberjack::Dispatcher::Console",
"levels": [
"Debug", "Info", "Warn", "Error"
],
"classes" : [
"My::Class"
]
}
],
"levels" : [
{
"class" : "My::Class",
"level" : "All"
}
]
}
EOJ```
## Description
This provides a mechanism to configure [Lumberjack](https://github.com/jonathanstowe/Lumberjack)
from a description in `JSON`.This is a fairly simple generic configuration, if you want more sophistication you may want to
compose your configuration in code.Somewhat more detail can be found in the [Documentation](Documentation.md).
## Installation
Assuming you have a working Rakudo installation you should be able to install this with *zef* :
zef install Lumberjack::Config::JSON
## Support
## Licence and Copyright
This is free software, please see the [LICENCE](LICENCE) for details.
© Jonathan Stowe 2021-