Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 3a649fa26de04b0283b9d5ebab66c377 > files > 15

php-analog-1.0.3-2.mga4.noarch.rpm

<?php

require '../lib/Analog.php';

Analog::handler (Analog\Handler\Mongo::init (
	'localhost:27017',
	'testing',
	'log'
));

Analog::log ('Error message');
Analog::log ('Debug info', Analog::DEBUG);

$m = new Mongo ('localhost:27017');
$cur = $m->testing->log->find ();
foreach ($cur as $doc) {
	print_r ($doc);
}
$m->testing->log->remove ();

?>