-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support different printer for different output #23
Labels
enhancement
New feature or request
Comments
Unfortunately not. |
OK, thanks for the very quick response 👍 |
You're welcome! |
I think keeping it as a feature request could be fine. Maybe someone else will have similar requirements. |
Bungeefan
changed the title
Different printer for different output
Support different printer for different output
May 10, 2023
It's pretty easy to write such class: class MultiOutput extends LogOutput {
final List<LogOutput> outputs;
MultiOutput({required this.outputs});
@override
Future<void> destroy() async {
for (final output in outputs)
await output.destroy();
}
@override
Future<void> init() async {
for (final output in outputs)
await output.init();
}
@override
void output(OutputEvent event) {
for (final output in outputs)
output.output(event);
}
} Good luck :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to have a different printer for each output specified in
MultiOutput()
?I can't see a good way to do that.
The text was updated successfully, but these errors were encountered: