From 037796b883395267f9b0f2316db36172a4ef8b10 Mon Sep 17 00:00:00 2001 From: wang-bin Date: Tue, 31 Dec 2024 16:39:12 +0800 Subject: [PATCH] update issue template to ensure log is not truncated --- .github/ISSUE_TEMPLATE/bug_report.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d155488..623c00a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -8,27 +8,37 @@ assignees: '' --- **Describe the bug** + A clear and concise description of what the bug is. **Expected behavior** + A clear and concise description of what you expected to happen. **Log** + Add -``` +```dart import 'package:logging/logging.dart'; import 'package:intl/intl.dart'; ``` add the following lines before `registerWith()` -``` +```dart Logger.root.level = Level.ALL; final df = DateFormat("HH:mm:ss.SSS"); Logger.root.onRecord.listen((record) { - print('${record.loggerName}.${record.level.name}: ${df.format(record.time)}: ${record.message}'); + debugPrint( + '${record.loggerName}.${record.level.name}: ${df.format(record.time)}: ${record.message}', + wrapWidth: 0x7FFFFFFFFFFFFFFF); }); ``` and + +
+log + ``` -Past log here +PASTE LOG HERE ``` +