simc / logger

Small, easy to use and extensible logger which prints beautiful logs.
https://pub.dev/packages/logger
MIT License
1.07k stars 129 forks source link

FileOutput is undefined_method #153

Open jin831 opened 1 year ago

jin831 commented 1 year ago

I want to use 'FileOutput' method but it's undefined_method

code: Logger(output: FileOutput(file: File('my path')));

error : The method 'FileOutput' isn't defined for the type '_MyHomePageState'. Try correcting the name to the name of an existing method, or defining a method named 'FileOutput'

so, I solved it with

import 'package:logger/src/outputs/file_output.dart'; (refer to https://github.com/simc/logger/issues/51)

can you import this method in pakage?

I am not good at English I ask for your understanding