1 |
joko |
1.1 |
<? |
2 |
|
|
// --------------------------------------------------------------------------- |
3 |
|
|
// $Id: Site.php,v 1.5 2002/12/23 11:33:58 jonen Exp $ |
4 |
|
|
// --------------------------------------------------------------------------- |
5 |
|
|
// $Log: Site.php,v $ |
6 |
|
|
// --------------------------------------------------------------------------- |
7 |
|
|
|
8 |
|
|
|
9 |
|
|
class DesignPattern_Logger { |
10 |
|
|
|
11 |
|
|
function log($msg, $level) { |
12 |
|
|
if ($this->logger) { |
13 |
|
|
$this->logger->log($msg, $level); |
14 |
|
|
} else { |
15 |
|
|
// TODO: how are these type of errors handled? |
16 |
|
|
//print "error-message: $msg<br>"; |
17 |
|
|
} |
18 |
|
|
} |
19 |
|
|
|
20 |
|
|
} |
21 |
|
|
|
22 |
|
|
?> |