Update dev.dart

This commit is contained in:
Tobe Osakwe 2019-02-06 16:59:05 -05:00 committed by GitHub
parent d42dd2befb
commit a3d80686b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,8 @@ main() async {
var app = new Angel(reflector: MirrorsReflector()); var app = new Angel(reflector: MirrorsReflector());
await app.configure(configureServer); await app.configure(configureServer);
hierarchicalLoggingEnabled = true; hierarchicalLoggingEnabled = true;
app.logger = new Logger('angel'); app.logger = new Logger.detached('{{angel}}')..onRecord.listen(prettyLog);
var sub = app.logger.onRecord.listen(prettyLog); app.shutdownHooks.add((_) => app.logger.clearListeners());
app.shutdownHooks.add((_) => sub.cancel());
return app; return app;
}, [ }, [
new Directory('config'), new Directory('config'),