@@ -147,7 +147,7 @@ public function getLastLog() : ?Log
147147 }
148148
149149 /**
150- * Detailed debug information.
150+ * Level 0: Detailed debug information.
151151 *
152152 * @param string $message
153153 * @param array<string> $context
@@ -160,7 +160,7 @@ public function logDebug(string $message, array $context = []) : bool
160160 }
161161
162162 /**
163- * Interesting events.
163+ * Level 1: Interesting events.
164164 *
165165 * Example: User logs in, SQL logs.
166166 *
@@ -175,7 +175,7 @@ public function logInfo(string $message, array $context = []) : bool
175175 }
176176
177177 /**
178- * Normal but significant events.
178+ * Level 2: Normal but significant events.
179179 *
180180 * @param string $message
181181 * @param array<string> $context
@@ -188,7 +188,7 @@ public function logNotice(string $message, array $context = []) : bool
188188 }
189189
190190 /**
191- * Exceptional occurrences that are not errors.
191+ * Level 3: Exceptional occurrences that are not errors.
192192 *
193193 * Example: Use of deprecated APIs, poor use of an API, undesirable things
194194 * that are not necessarily wrong.
@@ -204,8 +204,8 @@ public function logWarning(string $message, array $context = []) : bool
204204 }
205205
206206 /**
207- * Runtime errors that do not require immediate action but should typically
208- * be logged and monitored.
207+ * Level 4: Runtime errors that do not require immediate action but should
208+ * typically be logged and monitored.
209209 *
210210 * @param string $message
211211 * @param array<string> $context
@@ -218,7 +218,7 @@ public function logError(string $message, array $context = []) : bool
218218 }
219219
220220 /**
221- * Critical conditions.
221+ * Level 5: Critical conditions.
222222 *
223223 * Example: Application component unavailable, unexpected exception.
224224 *
@@ -233,7 +233,7 @@ public function logCritical(string $message, array $context = []) : bool
233233 }
234234
235235 /**
236- * Action must be taken immediately.
236+ * Level 6: Action must be taken immediately.
237237 *
238238 * Example: Entire website down, database unavailable, etc. This should
239239 * trigger the SMS alerts and wake you up.
@@ -249,7 +249,7 @@ public function logAlert(string $message, array $context = []) : bool
249249 }
250250
251251 /**
252- * System is unusable.
252+ * Level 7: System is unusable.
253253 *
254254 * @param string $message
255255 * @param array<string> $context
0 commit comments