floggy icon indicating copy to clipboard operation
floggy copied to clipboard

Can`t see log prints in Futures

Open itzikkle opened this issue 3 years ago • 1 comments

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?

itzikkle avatar Oct 12 '21 07:10 itzikkle

Hey @itzikkle , just to check, you are calling Loggy.initLoggy() before you try to log anything?

lukaknezic avatar Oct 23 '21 15:10 lukaknezic

Closing. If the problem persists, please re-open this issue.

zenled avatar Feb 23 '24 12:02 zenled