This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type tail | |
format none | |
path /var/log/hhvm/error.log | |
pos_file /var/lib/google-fluentd/pos/hhvm-error.pos | |
read_from_head true | |
tag hhvm-error | |
</source> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var listenForWindowHeight = function (event) { | |
var parts = event.data.split('|'); | |
// check the message is relevant | |
if (parts[0] != 'iframe-height') { | |
return; | |
} | |
// this check is only really needed if you have multiple iframes on the same page or are experiencing message name clashes | |
if (parts[1] != 'http://www.my-iframe-src.com/path') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/** | |
* For parent window implementation details | |
* @see https://gist.github.com/ianchadwick/a4e277d641bf739063c9 | |
*/ | |
(function (speed) { | |
if (parent === window) { | |
// no parent frame! | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type tail | |
format multiline | |
format_firstline /\[\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}\]/ | |
format1 /^\[(?<time>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2})\] lumen.(?<level>[^\s]+)(?<message>.*)/ | |
path /path/to/my-site/storage/logs/lumen.log | |
pos_file /var/lib/google-fluentd/pos/lumen.pos | |
read_from_head true | |
tag lumen | |
</source> |