Lines:
1 to 44 of 44
<?php /** * Class for logging events and errors * * @package EDD * @subpackage Logging * @copyright Copyright (c) 2015, Pippin Williamson * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.3.1 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /* class EDD_Logging */ /* function EDD_Logging::__construct() – Set up the EDD Logging Class */ /* function EDD_Logging::setup_log_file() – Sets up the log file if it is writable */ /* function EDD_Logging::register_post_type() – Registers the edd_log Post Type */ /* function EDD_Logging::register_taxonomy() – Registers the Type Taxonomy */ /* function EDD_Logging::log_types() – Log types */ /* function EDD_Logging::valid_type() – Check if a log type is valid */ /* function EDD_Logging::add() – Create new log entry */ /* function EDD_Logging::get_logs() – Easily retrieves log items for a particular object ID */ /* function EDD_Logging::insert_log() – Stores a log entry */ /* function EDD_Logging::update_log() – Update and existing log item */ /* function EDD_Logging::get_connected_logs() – Retrieve all connected logs */ /* function EDD_Logging::get_log_count() – Retrieves number of log entries connected to particular object ID */ /* function EDD_Logging::delete_logs() – Delete a log */ /* function EDD_Logging::get_file_contents() – Retrieve the log data */ /* function EDD_Logging::log_to_file() – Log message to file */ /* function EDD_Logging::get_file() – Retrieve the file data is written to */ /* function EDD_Logging::write_to_log() – Write the log message */ /* function EDD_Logging::clear_log_file() – Delete the log file or removes all contents in the log file if we cannot delete it */ /* function EDD_Logging::get_log_file_path() – Return the location of the log file that EDD_Logging will use. */ // Initiate the logging system $GLOBALS['edd_logs'] = new EDD_Logging(); /* function edd_record_log() – Record a log entry */ /* function edd_debug_log() – Logs a message to the debug log file */