- * @deprecated since 2019.03 Use Logger::debug() Logger::info() , ... instead
- */
- public static function log($msg, $level = LogLevel::NOTICE)
- {
- if (!isset(self::$logger)) {
- return;
- }
-
- $stamp1 = microtime(true);
- self::$logger->log($level, $msg);
- self::getApp()->saveTimestamp($stamp1, "file");
- }
-
- /**
- * @brief An alternative logger for development.
- * Works largely as log() but allows developers
- * to isolate particular elements they are targetting
- * personally without background noise
- *
- * @param string $msg
- * @param string $level
- */
- public static function devLog($msg, $level = LogLevel::DEBUG)
- {
- if (!isset(self::$logger)) {
- return;
- }
-
- $stamp1 = microtime(true);
- self::$devLogger->log($level, $msg);
- self::getApp()->saveTimestamp($stamp1, "file");
- }
+ * Works largely as log() but allows developers
+ * to isolate particular elements they are targetting
+ * personally without background noise
+ *
+ * @param string $message Message to log
+ * @param string $level Logging level
+ * @return void
+ * @throws \Exception
+ */
+ public static function devLog(string $message, string $level = LogLevel::DEBUG)
+ {
+ DI::devLogger()->log($level, $message);
+ }