Skip to content

Library that can be loaded from within controllers in Codeigniter

Notifications You must be signed in to change notification settings

ttopholm/codeigniter-loggly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter

meets

Loggly

This library allows you to send data to Loggly from inside CodeIgniter (i.e. controllers/models/views). Works out of the box.

Installation

Either download and unpack the archive into application/libraries/Loggly or use git submodules. Use sudo if you're in a restricted directory.

Git Submodules

Run this in Terminal from your CodeIgniter root directory:

git submodule add git://github.com/frankpinto/codeigniter-loggly.git application/libraries/Loggly
git submodule init
git submodule update

Download and Unpack

Either put it in the application/libraries folder manually or run this in Terminal from your CodeIgniter root directory:

wget https://github.com/frankpinto/codeigniter-loggly/archive/master.zip
unzip master.zip
mv codeigniter-loggly-master/ Loggly

Add Loggly Key

Add your loggly key to your default config file (key below is non-working) and any custom environment config files you've created

application/config/config.php
application/config/(development|staging|whatever)/config.php

/* Loggly config data */
$config['loggly_key'] = '83hfni39-x3j9-2918-bc4j-393ivmklwi39';

Usage

From any controller action:

$this->load->library('loggly');
$this->loggly->send('Hi Loggly!');

Acknowledgements

PHP bindings taken from cowlby's PHP Loggly Bindings library

About

Library that can be loaded from within controllers in Codeigniter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%