Yaffs site version 1.1
[yaffs-website] / vendor / gabordemooij / redbean / RedBeanPHP / Logger.php
1 <?php
2
3 namespace RedBeanPHP;
4
5 /**
6  * RedBean Logging interface.
7  * Provides a uniform and convenient logging
8  * interface throughout RedBeanPHP.
9  *
10  * @file    RedBean/Logging.php
11  * @author  Gabor de Mooij and the RedBeanPHP Community
12  * @license BSD/GPLv2
13  *
14  * @copyright
15  * copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community
16  * This source file is subject to the BSD/GPLv2 License that is bundled
17  * with this source code in the file license.txt.
18  */
19 interface Logger
20 {
21         /**
22          * A logger (for PDO or OCI driver) needs to implement the log method.
23          * The log method will receive logging data. Note that the number of parameters is 0, this means
24          * all parameters are optional and the number may vary. This way the logger can be used in a very
25          * flexible way. Sometimes the logger is used to log a simple error message and in other
26          * situations sql and bindings are passed.
27          * The log method should be able to accept all kinds of parameters and data by using
28          * functions like func_num_args/func_get_args.
29          *
30          * @param string $message, ...
31          *
32          * @return void
33          */
34         public function log();
35 }