3 |
## $Id$ |
## $Id$ |
4 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
5 |
## $Log$ |
## $Log$ |
6 |
|
## Revision 1.5 2003/04/11 01:29:13 joko |
7 |
|
## moved function 'logp' to org.netfrag.glib:utils/extensions.php |
8 |
|
## |
9 |
|
## Revision 1.4 2003/02/13 21:55:52 joko |
10 |
|
## + logging now via the global app instance |
11 |
|
## |
12 |
|
## Revision 1.3 2003/02/09 17:51:59 joko |
13 |
|
## + minor update related to new log level constants |
14 |
|
## |
15 |
## Revision 1.2 2002/12/19 06:22:09 joko |
## Revision 1.2 2002/12/19 06:22:09 joko |
16 |
## + function _t |
## + function _t |
17 |
## |
## |
57 |
return $site->getLink( $key, $attribs ); |
return $site->getLink( $key, $attribs ); |
58 |
} |
} |
59 |
|
|
|
// wrapper-function for getting the logger instance |
|
|
function logp($string, $level) { |
|
|
global $site; |
|
|
//return; |
|
|
$site->log($string, $level); |
|
|
} |
|
|
|
|
60 |
function dprint($message, $level = E_USER_NOTICE) { |
function dprint($message, $level = E_USER_NOTICE) { |
61 |
//debug_append($message, $level); |
//debug_append($message, $level); |
62 |
trigger_error($message, $level); |
trigger_error($message, $level); |