Skip to content

ermolinme/cloudlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library for CloudLog.me

CloudLog.me - is simple logging system.

Using

Just a few lines of code:

$apiToken = YOUR_TOKEN_HERE;
$channelId = YOUR_CHANNEL_ID_HERE; 

$cloudLog = new CloudLog($apiToken);
$cloudLog->channel($channelId);
$cloudLog->tag('my_cool_tag'); //optional
$cloudLog->info('Hello world!', ['foo' => 'bar']);
$cloudLog->error('Whoops!');
$cloudLog->critical('OMG!');

That's all!

Laravel

You can use this package as a Laravel logger.

php artisan vendor:publish --provider="Ermolinme\CloudLog\CloudLogServiceProvider" --tag="config"

Create log config in config/logging.php

...
'cloud' => [
    'driver' => 'custom',
    'via'    => \Ermolinme\CloudLog\CustomLogger::class,
    'level'  => 'debug',
],
...

And use it!

Log::channel('cloud')->info('Hello world');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages