Update dev.dart
This commit is contained in:
parent
ec53896d86
commit
014c07a89f
1 changed files with 2 additions and 3 deletions
|
@ -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'),
|
||||||
|
|
Loading…
Reference in a new issue