File: buffer.php

package info (click to toggle)
php-analog 1.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 232
  • sloc: php: 875; makefile: 12; sh: 5
file content (18 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

require 'Analog.php';

Analog::handler (Analog\Handler\Buffer::init (
	Analog\Handler\Mail::init (
		'you@example.com',
		'Log messages',
		'noreply@example.com'
	)
));

// will all be sent as one email instead of three
Analog::log ('Message one');
Analog::log ('Message two');
Analog::log ('Message three');

?>