Skip to content

Instantly share code, notes, and snippets.

View dgwynne's full-sized avatar

David Gwynne dgwynne

  • Brisbane, Australia
View GitHub Profile
@dgwynne
dgwynne / Log.pm
Last active July 12, 2016 05:14
bunyan output for apache
package EAIT::Log;
use strict;
use warnings;
use mod_perl;
use Apache::Constants;
use Sys::Hostname;
use POSIX qw(strftime);
use Fcntl qw(:flock);
@dgwynne
dgwynne / bunyan.lua
Created July 12, 2016 05:08
lua bunyan
local logfile = require("logfile")
local P = require("posix")
local cjson = require("cjson")
local cookies = require("http_cookies")
local _M = {
fatal = 60,
error = 50,
warn = 40,