Skip to content

Commit 689cef0

Browse files
ci: bump version to v0.3.24
1 parent be52105 commit 689cef0

5 files changed

Lines changed: 39 additions & 31 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [0.3.24]
4+
5+
- Released @ 7/2025 (UTC)
6+
- Update docs and assets
7+
38
## [0.3.23]
49

510
- Released @ 7/2025 (UTC)

README.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="48"></a>
2-
<a href="https://discord.gg/gEQ8y2nfyX" target="_blank"><img align="right" src="https://raw.githubusercontent.com/dev-cetera/.github/refs/heads/main/assets/icons/discord_icon/discord_icon.svg" height="48"></a>
1+
Dart & Flutter Packages by [dev-cetera.com](https://dev-cetera.com) & contributors.
32

4-
Dart & Flutter Packages by dev-cetera.com & contributors.
5-
6-
[![sponsor](https://img.shields.io/badge/sponsor-grey?logo=github-sponsors)](https://github.com/sponsors/dev-cetera)
7-
[![patreon](https://img.shields.io/badge/patreon-grey?logo=patreon)](https://www.patreon.com/c/RobertMollentze)
83
[![pub](https://img.shields.io/pub/v/df_log.svg)](https://pub.dev/packages/df_log)
9-
[![tag](https://img.shields.io/badge/tag-v0.3.23-purple?logo=github)](https://github.com/dev-cetera/df_log/tree/v0.3.23)
10-
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_log/main/LICENSE)
4+
[![tag](https://img.shields.io/badge/Tag-v0.3.24-purple?logo=github)](https://github.com/dev-cetera/df_log/tree/v0.3.24)
5+
6+
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
7+
[![sponsor](https://img.shields.io/badge/Sponsor-202020?logo=github-sponsors&logoColor=pink)](https://github.com/sponsors/dev-cetera)
8+
[![patreon](https://img.shields.io/badge/Patreon-202020?logo=patreon)](https://www.patreon.com/RobertMollentze)
9+
10+
[![discord](https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/gEQ8y2nfyX)
11+
[![instagram](https://img.shields.io/badge/Instagram-E4405F?logo=instagram&logoColor=white)](https://www.instagram.com/dev_cetera/)
12+
13+
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_log/main/LICENSE)
1114

1215
---
1316

14-
[![banner](https://github.com/dev-cetera/df_log/blob/v0.3.23/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
17+
[![banner](https://github.com/dev-cetera/df_log/blob/v0.3.24/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
1518

1619
<!-- BEGIN _README_CONTENT -->
1720

@@ -28,6 +31,10 @@ Dart & Flutter Packages by dev-cetera.com & contributors.
2831
- **IDE Integration:** Optionally uses `dart:developer`'s `log` function for a richer experience in some IDEs.
2932
- **Extensible:** Add custom callbacks to integrate with other services (e.g., crash reporting).
3033

34+
## 📸 Screenshot
35+
36+
<img src="https://raw.githubusercontent.com/dev-cetera/df_log/main/doc/assets/example.png" alt="Visual Studio Code Terminal" width="600">
37+
3138
## 🚀 Getting Started
3239

3340
For an introduction, please refer to this article:
@@ -36,11 +43,6 @@ For an introduction, please refer to this article:
3643
- **DEV.TO** [Dart Logging: Your New Best Friend](https://dev.to/dev_cetera/dart-logging-your-new-best-friebd-ae1)
3744
- **GITHUB** [Dart Logging: Your New Best Friend](https://github.com/dev-cetera/df_log/blob/main/ARTICLE.md)
3845

39-
40-
## 📖 Usage
41-
42-
<img src="https://raw.githubusercontent.com/dev-cetera/df_log/main/doc/assets/screenshot2.png" alt="Visual Studio Code Terminal" width="600">
43-
4446
### 💡 1. Categorized Logs
4547

4648
The package comes with a few default log types that you can use creatively.
@@ -151,7 +153,7 @@ void main() {
151153

152154
---
153155

154-
☝️ Please refer to the [API reference](https://pub.dev/documentation/df_log/) for more information.
156+
🔍 For more information, refer to the [API reference](https://pub.dev/documentation/df_log/).
155157

156158
---
157159

@@ -161,7 +163,6 @@ This is an open-source project, and we warmly welcome contributions from everyon
161163

162164
### ☝️ Ways you can contribute
163165

164-
- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/dev_cetera). Your support helps cover the costs of development and keeps the project growing.
165166
- **Find us on Discord:** Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX.
166167
- **Share your ideas:** Every perspective matters, and your ideas can spark innovation.
167168
- **Help others:** Engage with other users by offering advice, solutions, or troubleshooting assistance.
@@ -178,6 +179,6 @@ If you're enjoying this package and find it valuable, consider showing your appr
178179

179180
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="40"></a>
180181

181-
## 🧑‍⚖️ License
182+
## LICENSE
182183

183184
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_log/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_log/main/LICENSE) for more information.

example/screenshot3.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ void main() {
1717
// Compile the payload to send to your crash reporter.
1818
final payload = {
1919
'exception': logItem.message,
20-
'extra': {
21-
'breadcrumbs': history,
22-
},
20+
'extra': {'breadcrumbs': history},
2321
};
2422

2523
// TODO: Send the payload to your crash reporter here!

lib/src/log.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ final class Log {
554554
}
555555

556556
// Only print if combinedTags is empty or any of combinedTags are in activeTags.
557-
if (combinedTags.isNotEmpty && !activeTags.any((e) => combinedTags.contains(e))) {
557+
if (combinedTags.isNotEmpty &&
558+
!activeTags.any((e) => combinedTags.contains(e))) {
558559
return;
559560
}
560561

lib/src/log_item.dart

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ final class LogItem {
4848
required this.showTags,
4949
required this.showTimestamp,
5050
required this.frame,
51-
}) : id = const Uuid().v4(),
52-
timestamp = DateTime.now();
51+
}) : id = const Uuid().v4(),
52+
timestamp = DateTime.now();
5353

5454
//
5555
//
@@ -102,10 +102,12 @@ final class LogItem {
102102
final hasLocation = location1 != null && location1.isNotEmpty;
103103

104104
if (hasLocation) {
105-
final bracketStyle =
106-
nonMessageStyle != null ? AnsiStyle.bold + nonMessageStyle : null;
107-
final pathTextStyle =
108-
nonMessageStyle != null ? AnsiStyle.italic + nonMessageStyle : null;
105+
final bracketStyle = nonMessageStyle != null
106+
? AnsiStyle.bold + nonMessageStyle
107+
: null;
108+
final pathTextStyle = nonMessageStyle != null
109+
? AnsiStyle.italic + nonMessageStyle
110+
: null;
109111
if (icon != null) {
110112
buffer.write('$icon ');
111113
}
@@ -122,8 +124,8 @@ final class LogItem {
122124

123125
if (message != null) {
124126
final styledMessage = message.toString().trim().withAnsiStyle(
125-
messageStyle,
126-
);
127+
messageStyle,
128+
);
127129
buffer.write(styledMessage);
128130
}
129131

@@ -179,8 +181,9 @@ final class LogItem {
179181

180182
String toJson({bool pretty = true}) {
181183
final map = toMap();
182-
final encoder =
183-
pretty ? const JsonEncoder.withIndent(' ') : const JsonEncoder();
184+
final encoder = pretty
185+
? const JsonEncoder.withIndent(' ')
186+
: const JsonEncoder();
184187
return encoder.convert(map);
185188
}
186189

0 commit comments

Comments
 (0)