This file is indexed.

/usr/share/php/Analog/Handler/ChromeLogger.php is in php-analog 1.0.7-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php

namespace Analog\Handler;

require_once __DIR__ . '/../../ChromePhp.php';

/**
 * Log to the [Chrome Logger](http://craig.is/writing/chrome-logger).
 * Based on the [ChromePhp library](https://github.com/ccampbell/chromephp).
 *
 * Usage:
 *
 *     Analog::handler (Analog\Handler\ChromeLogger::init ());
 *     
 *     // send a debug message
 *     Analog::debug ($an_object);
 *
 *     // send an ordinary message
 *     Analog::info ('An error message');
 */
class ChromeLogger {
	public static function init () {
		return function ($info) {
			switch ($info['level']) {
				case \Analog\Analog::DEBUG:
					\ChromePhp::log ($info['message']);
					break;
				case \Analog\Analog::INFO:
				case \Analog\Analog::NOTICE:
					\ChromePhp::info ($info['message']);
					break;
				case \Analog\Analog::WARNING:
					\ChromePhp::warn ($info['message']);
					break;
				case \Analog\Analog::ERROR:
				case \Analog\Analog::CRITICAL:
				case \Analog\Analog::ALERT:
				case \Analog\Analog::URGENT:
					\ChromePhp::error ($info['message']);
					break;
			}
		};
	}
}