Lumberjack::Config::JSON

Simple Lumberjack configuration through JSON

Lumberjack::Config::JSON

Configure the Lumberjack logging framework from JSON

image https://github.com/jonathanstowe/Lumberjack-Config-JSON/workflows/CI/badge.svg not found

Synopsis


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 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.

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 for details.

Ā© Jonathan Stowe 2021-

Lumberjack::Config::JSON v0.0.3

Simple Lumberjack configuration through JSON

Authors

  • Jonathan Stowe

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Lumberjack::Config::JSON

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.