6 * RedBean Logging interface.
7 * Provides a uniform and convenient logging
8 * interface throughout RedBeanPHP.
10 * @file RedBean/Logging.php
11 * @author Gabor de Mooij and the RedBeanPHP Community
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.
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.
30 * @param string $message, ...
34 public function log();