PHP code example of logger / logsene

1. Go to this page and download the library: Download logger/logsene library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

logger / logsene example snippets


$url = "https://logsene-receiver.eu.sematext.com/66260a29-f1cc-4121-8b24-058587ba0a80/test/";
$tags = ['test'];
$context = ['test' => true];
$httpClientAdapter = null; /// Use the default http-client-adapter
$logger = new \Logger\LogseneLogger($url, $tags, $context, $httpClientAdapter);
$logger->debug('This is a test-message');