Skip to content

sbstjn/pinged.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinged.PHP

https://travis-ci.org/sbstjn/pinged.php.svg

Lightweight logging service written in PHP. Easily log events from other applications and servers using a simple HTTP interface.

Usage

Pinged runs fine on the free Heroku stack using the free PostgreSQL add-on. Please make sure you have a correct configured DATABASE_URL config variable. For authenticating your logging requests, please add a config variable called PINGED_AUTH as well.

Database

Create the following PostgreSQL database in your heroku database:

CREATE TABLE LOG (
   ID         SERIAL PRIMARY KEY      NOT NULL,
   TIME       timestamp without time zone DEFAULT now(),
   CATEGORY   CHAR(50) NOT NULL,
   ACTION     CHAR(50) NOT NULL,
   KEY        CHAR(50) NOT NULL,
   VALUE      CHAR(50) NOT NULL
)

Logging

$ > curl http://pinged.herokuapp.com/category/action/key/value -H 'X-Pinged-Auth:YOUR_PINGED_AUTH_KEY'

About

Lightweight PHP logging service with HTTP interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published