Skip to content

ch13_logging

Daniel Samson edited this page Sep 30, 2025 · 1 revision

TeensyPHP offers a Log class to to provide logging that is filtered based on the LOG_LEVEL environment variable set.

Usage

use TeensyPHP\Utility\Log;
use TeensyPHP\Enums\LogLevelEnum;

Log::debug("message");
Log::info("message");
Log::warning("message");
Log::error("message");
Log::critical("message");
Log::alert("message");
Log::emergency("message");

Clone this wiki locally