daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Jun 19th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. require('gelf.php');
  4.  
  5. $gelf = new GELFMessage('localhost', 12201);
  6.  
  7. $gelf->setShortMessage('Something is broken');
  8. $gelf->setFullMessage("Stacktrace\n\nmore stuff");
  9. $gelf->setHost('my-app');
  10. $gelf->setLevel(1);
  11. $gelf->setFile('/var/www/example.php');
  12. $gelf->setLine(1337);
  13. $gelf->setAdditional("Something", "Foo");
  14. $gelf->setAdditional("Something else", "Bar");
  15. $gelf->send();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top