Skip to content
Common logging component used in OPG LPA projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
bin
src/Opg/Lpa/Logger
tests
.buildpath
.gitignore
.project
Dockerfile
Jenkinsfile
LICENSE
Makefile
README.md
composer.json
composer.lock
composer.phar
composer.sh
docker-compose.yml

README.md

Lasting Power of Attorney Logger

The lasting power of attorney Logger is a set of PHP classes that we use for application logging within our systems.

Installation with Composer

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/ministryofjustice/opg-lpa-logger"
        }
    ],
    "require": {
        "ministryofjustice/opg-lpa-logger": "^1.0.0",
    }
}

Usage

$logger = new Logger();

$logger->alert($message1);
$logger->err($message2);
$logger->warn($message3);

Testing

cd tests

Replace the contents of the files with valid values

../bin/phpunit

License

The Lasting Power of Attorney Attorney API Service is released under the MIT license, a copy of which can be found in LICENSE.

You can’t perform that action at this time.