Created
April 5, 2021 14:42
-
-
Save fredgrott/95938c5d8e3f9606d4f507360fc391f0 to your computer and use it in GitHub Desktop.
logger types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:logging/logging.dart'; | |
abstract class LoggerType { | |
Logger get logger; | |
} | |
extension LoggerSpawner on LoggerType{ | |
Logger newLogger(String name) => Logger('${logger.fullName}.$name'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment