Open 0ttik opened 3 years ago
E.g.
final logger = Logger<MyMessage>(); logger.i(MyMessage("I'm potato", tag: Tag.potato)); class MyMessage { final dynamic message; final Tag? tag; ... } enum Tag {potato, nonPotato}
I think this also compliments this https://github.com/leisim/logger/issues/68#issuecomment-786637080 because solution there doesn't provide type-safety.
E.g.
I think this also compliments this https://github.com/leisim/logger/issues/68#issuecomment-786637080 because solution there doesn't provide type-safety.