Closed seenickcode closed 3 years ago
This code logs for me:
library main;
import 'dart:async';
import 'package:jaguar/jaguar.dart';
main() async {
final server = Jaguar();
server.get('/hello', (Context ctx) => 'Hello world!');
server.log.onRecord.listen(print);
await server.serve(logRequests: true);
}
This line is responsible for actually logging to stdout:
server.log.onRecord.listen(print);
The following two examples do not print anything to STDOUT on WSL1 or Windows 10, ver 2.4.44.
and