wrote this file. * As long as you retain this notice you can do whatever you want with * this stuff. If we meet some day, and you think this stuff is worth it, * you can buy me a beer in return. * * @author Sven Strittmatter * @copyright Copyright (c) 2010, Sven Strittmatter. * @version 0.2.0 * @license http://www.weltraumschaf.de/the-beer-ware-license.txt */ /** * Simple logger class. * * Collects all log messages in an array. Has no persistence. */ class Api_Log { /** * Stores the log messages. * * @var array */ private static $logLines = array(); /** * Stores a log message. * * @param string $message */ public static function log($message) { self::$logLines[] = (string) $message; } /** * Get all log messages. * * @return array */ public static function get() { return self::$logLines; } }