2017 © Pedro Peláez
 

library logentries_test

Logging library for use with Logentries

image

ematos/logentries_test

Logging library for use with Logentries

  • Tuesday, May 13, 2014
  • by eduardo-matos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Logging to Logentries with Php

With these simple steps you can send your Php application logs to Logentries., (*1)

Firsly you must register an account on Logentries.com, this only takes a few seconds., (*2)

Logentries Setup

When you have made your account on Logentries. Log in and create a new host with a name that best represents your app., (*3)

Then, click on your new host and inside that, create a new log file with a name that represents what you are logging,, (*4)

example: 'myerrors'. Bear in mind, these names are purely for your own benefit. Under source type, select Token TCP, (*5)

and click Register. You will notice a token appear beside the name of the log, these is a unique identifier that the logging, (*6)

library will use to access that logfile. You can copy and paste this now or later., (*7)

Parameter Setup

Download this repo as a ZIP file and unzip it into your app's directroy., (*8)

Inside the le_php-master folder, open logentries.php as you need to fill in a parameter, LOGENTRIES_TOKEN., (*9)

LOGENTRIES_TOKEN is the token we copied earlier from the Logentries UI. It associates that logger with the log file on Logentries., (*10)

Code Setup

Now you need to download the library from the Downloads Tab, unzip and place the folder in your apps directory., (*11)

To use it in your code, enter the following lines, making changes accordingly if you place it in a different location., (*12)

require dirname(__FILE__) . '/le_php-master/logentries.php';

// The following levels are available
$log->Debug(" ");
$log->Info(" ");
$log->Notice(" ");
$log->Warn(" ");
$log->Crit(" ");
$log->Error(" ");
$log->Alert(" ");
$log->Emerg(" ");

The Versions

13/05 2014

dev-composer

dev-composer

Logging library for use with Logentries

  Sources   Download

MIT

The Development Requires

by Mark Lacomber

12/05 2014

0.0.1

0.0.1.0

test desc

  Sources   Download

The Development Requires

by Mark Lacomber