Cartflows_WC_Logger

Cartflows_WC_Logger class.


Source

File: classes/logger/class-cartflows-wc-logger.php


			

Methods

  • __construct — Constructor for the logger.
  • add — Add a log entry.
  • alert — Adds an alert level message.
  • clear — Clear entries for a chosen file/source.
  • clear_expired_logs — Clear all logs older than a defined number of days. Defaults to 30 days.
  • critical — Adds a critical level message.
  • debug — Adds a debug level message.
  • emergency — Adds an emergency level message.
  • error — Adds an error level message.
  • info — Adds a info level message.
  • log — Add a log entry.
  • notice — Adds a notice level message.
  • should_handle — Determine whether to handle or ignore log.
  • warning — Adds a warning level message.