File: file.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 (15 lines) | stat: -rw-r--r-- 214 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

require 'Analog.php';

$log_file = 'log.txt';

Analog::handler (Analog\Handler\File::init ($log_file));

Analog::log ('foo');
Analog::log ('bar');

echo file_get_contents ($log_file);
unlink ($log_file);

?>