-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProductionLoggerManager.php
More file actions
55 lines (51 loc) · 1.46 KB
/
ProductionLoggerManager.php
File metadata and controls
55 lines (51 loc) · 1.46 KB
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
45
46
47
48
49
50
51
52
53
54
55
<?php
/* Copyright 2006 - 2007 � Cameron Manderson PTY LTD All Rights Reserved
*
* No part of this document may be reproduced or copied in any form by any
* means without the written permission of Cameron Manderson of Cameron Manderson
* PTY LTD. The possession and use of this document is subject to the terms
* and conditions of a written licence agreement issued by Cameron Manderson PTY
* LTD. The terms and conditions in this document, and in any licence
* agreement with Cameron Manderson PTY LTD are governed by the laws of Victoria,
* Australia. Inquiries regarding this document should be directed to
* Cameron Manderson PTY LTD <legals@flintinteractive.com.au>
*
* ProductionLoggerManager.php created on Sep 1, 2007
* camm
*/
/**
* LoggerManager
*
* TODO: Document class responsibilities
*
* @package
* @author camm
*/
class LoggerManager {
// Variable Declaration
/** Instantiates the class ProductionLoggerManager */
function getLogger($class) {
static $log;
if(empty($log)) $log = new DummyLog();
return $log;
}
}
/**
* ProductionLoggerManager
*
* TODO: Document class responsibilities
*
* @package
* @author camm
*/
class DummyLog {
function debug($message) {}
function info($message) {}
function error($message) {
trigger_error($message, E_USER_ERROR);
}
function warn($message) {
trigger_error($message, E_USER_WARNING);
}
}
?>