Skip to content

Commit

Permalink
update issue template to ensure log is not truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Dec 31, 2024
1 parent 725612d commit 037796b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<details>
<summary>log</summary>

```
Past log here
PASTE LOG HERE
```
</details>

0 comments on commit 037796b

Please sign in to comment.