Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
committed Jan 15, 2025
1 parent bdde057 commit 010ec32
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.0.60

- New Version 0.0.60


## 0.0.59

- New Version 0.0.59
Expand Down
10 changes: 6 additions & 4 deletions lib/log/log.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ class GeneralLibraryLogOptions {
if (logOptions != null) {
return copyWith(
textTitle: valueStringSetIfEmptReturnNull(value: logOptions.textTitle),
textContext: valueStringSetIfEmptReturnNull(value: logOptions.textContext),
textContext:
valueStringSetIfEmptReturnNull(value: logOptions.textContext),
);
}
return this;
Expand Down Expand Up @@ -142,7 +143,8 @@ class GeneralLibraryLog {
});

/// GeneralLibraryLog
static final bool _isCanPrintToTerminal = Dart.executable_type == ExecutableType.cli;
static final bool _isCanPrintToTerminal =
Dart.executable_type == ExecutableType.cli;

/// GeneralLibraryLog
FutureOr<void> printToTerminal({
Expand All @@ -157,8 +159,8 @@ class GeneralLibraryLog {
print(Trace.from(logMessage.stackTrace).terse.toString());
}
final GeneralLibraryLogOptions logOptions = this.logOptions.patchWith(
logOptions: logMessage.logOptions,
);
logOptions: logMessage.logOptions,
);
print("""
• 🆔 Title: ${logOptions.textTitle}
• 📍 Context: ${logOptions.textContext}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'general_lib'
description: 'All in one library for help you make easy app on cross platform and support server side, inclue tcp, fetch, event emitter, websocket, and more.'
version: '0.0.59'
version: '0.0.60'
environment:
sdk: '>=3.6.0 <4.0.0'
dev_dependencies:
Expand Down

0 comments on commit 010ec32

Please sign in to comment.