Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/SimpleSAML/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ public static function warning(string $string): void
self::log(self::WARNING, $string);
}

/**
* Log a warning about deprecated code.
*
* @param string $string The message to log.
*/
public static function deprecated(string $string): void
{
self::log(self::WARNING, 'DEPRECATION WARNING: ' . $string);
}

/**
* We reserve the notice level for statistics, so do not use this level for other kind of log messages.
Expand Down