floggy
floggy copied to clipboard
Can`t see log prints in Futures
Hi, first of all, i very much like this logger and the simplicity of creating new mixins for different object types. Im using GetX package and when print a logger inside a Future method, i don't see those prints.. For example: class AuthService extends GetxService with ServiceLogger { AuthService({required this.authProvider});
final AuthProvider authProvider; RxBool _userStateRegistered = false.obs; RxBool get userStateRegistered => _userStateRegistered;
Future<AuthService> init() async { loggy.info('Before register'); _userStateRegistered = userRegistered(); return this; } The print inside the Future is not printed to console.. what I'm I doing wrong?
Hey @itzikkle , just to check, you are calling Loggy.initLoggy()
before you try to log anything?
Closing. If the problem persists, please re-open this issue.