Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A log writer for Kohana which submits the log data to a remote script over http or https.

branch: 3.2/master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 classes
Octocat-spinner-32 .gitignore
Octocat-spinner-32 readme.md
readme.md

Log_Remote

Kohana module to submit log data over HTTP or HTTPS.

This can be used where you have a large number of sites to manage on multiple servers. You can submit log data from all sites to a particular URL and have a script there store it in a database to be able to browse log data from all your sites.

Configuration

  • Load the module in your bootstrap file as normal.
  • Attach the log write: Kohana::$log->attach(new Log_Remote("https://path/to/recieving/script.php"));

Additional POST data

You can send additional variables in the POST data by passing an array of key / value pairs to the constructor. This is useful for verifying the origin of the data or identifying the log data as coming from a specific site / codebase.

Kohana::$log->attach(new Log_Remote("https://path/to/recieving/script.php", array(
    'project_id'    =>  $project_id,
    'domain'        =>  $domain,
    'auth_key'      =>  $key,
)));
Something went wrong with that request. Please try again.