Skip to content

Instantly share code, notes, and snippets.

View frankmullenger's full-sized avatar

Frank Mullenger frankmullenger

View GitHub Profile
@frankmullenger
frankmullenger / _config.php
Last active December 22, 2016 01:47
Logging to file and Chrome console
<?php
// Logging to file (create notices.log with necessary permissions for apache to write to)
$handler = new Monolog\Handler\StreamHandler('/var/www/html/assets/notices.log');
$handler->setFormatter(new Monolog\Formatter\LineFormatter(null, null, true, true));
Injector::inst()->get('Logger')->pushHandler($handler);
// Logging to Chrome console (composer require --dev ccampbell/chromephp 4.1.0)
$handler = new Monolog\Handler\ChromePHPHandler();
$handler->setFormatter(new Monolog\Formatter\ChromePHPFormatter());
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:gx="http://www.google.com/kml/ext/2.2"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>LandUse</name>
<visibility>1</visibility>
<Schema name="LandUse" id="kml_schema_ft_LandUse">