1 |
<?php |
2 |
// $Horde: horde/lib/Log/file.php,v 1.4 2000/06/28 21:36:13 jon Exp $ |
3 |
|
4 |
/** |
5 |
* The Log_file class is a concrete implementation of the Log:: |
6 |
* abstract class which writes message to a text file. |
7 |
* |
8 |
* @author Jon Parise <jon@csh.rit.edu> |
9 |
* @version $Revision: 1.1 $ |
10 |
* @since Horde 1.3 |
11 |
*/ |
12 |
class Log_dummy extends Log { |
13 |
|
14 |
// {{{ properties |
15 |
|
16 |
/** String holding the filename of the logfile. */ |
17 |
var $filename = ''; |
18 |
|
19 |
/** Integer holding the file handle. */ |
20 |
var $fp = ''; |
21 |
|
22 |
// }}} |
23 |
|
24 |
|
25 |
// {{{ constructor |
26 |
/** |
27 |
* Constructs a new logfile object. |
28 |
* |
29 |
* @param $log_name The filename of the logfile. |
30 |
* @param $ident (optional) The identity string. |
31 |
* @param $conf (optional) The configuration array. |
32 |
*/ |
33 |
function Log_dummy ($log_name, $ident = '', $conf = false) { |
34 |
} |
35 |
// }}} |
36 |
|
37 |
|
38 |
// {{{ open() |
39 |
/** |
40 |
* Opens the logfile for appending, if it has not already been opened. |
41 |
* If the file doesn't already exist, attempt to create it. This is |
42 |
* implicitly called by log(), if necessary. |
43 |
*/ |
44 |
function open () { |
45 |
} |
46 |
// }}} |
47 |
|
48 |
// {{{ close() |
49 |
/** |
50 |
* Closes the logfile, if it is open. |
51 |
*/ |
52 |
function close () { |
53 |
} |
54 |
// }}} |
55 |
|
56 |
// {{{ log() |
57 |
/** |
58 |
* Writes $message to the currently open logfile. Calls open(), if |
59 |
* necessary. Also, passes the message along to any Log_observer |
60 |
* instances that are observing this Log. |
61 |
* |
62 |
* @param $message The textual message to be logged. |
63 |
* @param $priority (optional) The priority of the message. Valid |
64 |
* values are: LOG_EMERG, LOG_ALERT, LOG_CRIT, |
65 |
* LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, and |
66 |
* LOG_DEBUG. The default is LOG_INFO. |
67 |
*/ |
68 |
function log ($message, $priority = LOG_INFO) { |
69 |
} |
70 |
// }}} |
71 |
|
72 |
} |
73 |
|
74 |
?> |