Skip to content

Horttcore/Anni-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AnniAdapter

A logger client for my Anni logging platform

Installation

composer require ralfhortt/anni-client

Usage

<?php
use \Anni\Connect;

# Open a connection
\Anni\Connect::to('https://anni.acme.io/sample-project/production/jNsVwMbyXO27uxZw');

# Log to Anni
\Anni\Info('Retailer importer', 'Starting');
\Anni\Critical('Retailer importer', 'No log file found', ['url' => $importUrl]);
\Anni\Debug('Retailer importer', 'Retailer importer');
\Anni\Notice('Retailer importer', 'Missing data in retailer');
\Anni\Warning('Retailer importer', 'Could not generate latitude/longitude of retailer');
\Anni\Error('Retailer importer', 'Failed to import retailer');
\Anni\Alert('Retailer importer', 'Import failed', ['url' => $importUrl]);
\Anni\Info('Retailer importer', 'Imported 42 retailers', $retailers);
\Anni\Emergency('Retailer importer', 'No retailer after import');

About

A logger client for my Anni logging platform

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages