Skip to content

Commit

Permalink
Update codelessly_logger.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
rayliverified committed Oct 14, 2024
1 parent eef8056 commit 7ec41fa
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions lib/src/logging/codelessly_logger.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:developer' as dev;

import 'package:flutter/foundation.dart';

const logger = CodelesslyLogger._();
Expand All @@ -15,10 +13,7 @@ class CodelesslyLogger {
if (largePrint && kIsWeb) {
debugPrint('[$label] ${message.toString()}');
} else {
dev.log(
message.toString(),
name: label,
);
debugPrint(message.toString());
}
}

Expand All @@ -35,12 +30,7 @@ class CodelesslyLogger {
maxFrames: 100,
);
} else {
dev.log(
message.toString(),
name: label,
error: error,
stackTrace: stackTrace,
);
debugPrint(message.toString());
}
}
}

0 comments on commit 7ec41fa

Please sign in to comment.