You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -252,35 +264,35 @@ Here is a quick reference to all the main features available.
252
264
253
265
### Main Logging Methods
254
266
255
-
Log.info(msg, [tags]): For general informational messages. (🟣)
256
-
Log.ok(msg, [tags]): For success operations. (🟢)
257
-
Log.err(msg, [tags]): For errors or exceptions. (🔴)
258
-
Log.alert(msg, [tags]): For warnings that need attention. (🟠)
259
-
Log.start(msg, [tags]): To mark the beginning of a process. (🔵)
260
-
Log.stop(msg, [tags]): To mark the end of a process. (⚫)
261
-
Log.trace(msg, [tags]): For fine-grained debugging information. (⚪️)
262
-
Log.printGreen(message): Prints a message in a specific color without any other formatting. Many other colors are available (printRed, printYellow, printBlue, etc.).
267
+
-`Log.info(msg, [tags])`: For general informational messages. (🟣)
268
+
-`Log.ok(msg, [tags])`: For success operations. (🟢)
269
+
-`Log.err(msg, [tags])`: For errors or exceptions. (🔴)
270
+
-`Log.alert(msg, [tags])`: For warnings that need attention. (🟠)
271
+
-`Log.start(msg, [tags])`: To mark the beginning of a process. (🔵)
272
+
-`Log.stop(msg, [tags])`: To mark the end of a process. (⚫)
273
+
-`Log.trace(msg, [tags])`: For fine-grained debugging information. (⚪️)
274
+
-`Log.printGreen(message)`: Prints a message in a specific color without any other formatting. Many other colors are available (`printRed`, `printYellow`, `printBlue`, etc.).
263
275
264
276
### Configuration (Static Properties on Log)
265
277
266
-
Log.enableStyling = true: Enables/disables ANSI colors and icons. Set this to false if your terminal does not supprt ANSI colors.
267
-
Log.showTimestamps = true: Shows a HH:mm:ss.SSS timestamp on each log.
268
-
Log.showTags = true: Shows tags like #auth #ui on each log.
269
-
Log.showIds = false: Shows a unique ID on each log.
270
-
Log.enableReleaseAsserts = false: By default, logs only work in debug mode. Set to true to enable logging in release builds (use with caution).
278
+
-`Log.enableStyling = true`: Enables/disables ANSI colors and icons. Set this to false if your terminal does not supprt ANSI colors.
279
+
-`Log.showTimestamps = true`: Shows a HH:mm:ss.SSS timestamp on each log.
280
+
-`Log.showTags = true`: Shows tags like #auth #ui on each log.
281
+
-`Log.showIds = false`: Shows a unique ID on each log.
282
+
-`Log.enableReleaseAsserts = false`: By default, logs only work in debug mode. Set to true to enable logging in release builds (use with caution).
271
283
272
284
### In-Memory Storage & Callbacks
273
285
274
-
Log.storeLogs = true: If true, keeps a history of logs in memory.
275
-
Log.maxStoredLogs = 50: Sets the max number of LogItem objects to store.
276
-
Log.items: A Queue<LogItem> containing the stored logs.
277
-
Log.addCallback(callback): Registers a function void Function(LogItem item) that runs for every log.
278
-
Log.removeCallback(callback): Removes a previously registered callback.
286
+
-`Log.storeLogs = true`: If true, keeps a history of logs in memory.
287
+
-`Log.maxStoredLogs = 50`: Sets the max number of LogItem objects to store.
288
+
-`Log.items`: A `Queue<LogItem>` containing the stored logs.
289
+
-`Log.addCallback(callback)`: Registers a function void `Function(LogItem item)` that runs for every log.
290
+
-`Log.removeCallback(callback)`: Removes a previously registered callback.
279
291
280
292
### Advanced Output
281
293
282
-
Log.useDeveloperLog(): Switches output to dart:developer's log function for a richer experience in some IDEs.
283
-
Log.useStandardPrint(): Reverts the output to the standard print function.
294
+
-`Log.useDeveloperLog()`: Switches output to **dart:developer's** log function for a richer experience in some IDEs.
295
+
-`Log.useStandardPrint()`: Reverts the output to the standard print function.
0 commit comments