Is there a way to easily change the log

Is there a way to easily change the log-level with miniflare? for some reason I can't seem to find an option to completely disable the HTTP logging
1 Reply
MrBBot
MrBBot•2y ago
Hey! 👋 Unfortunately not with the CLI, you can with the API though:
import { Miniflare, NoOpLog } from "miniflare";

const mf = new Miniflare({
log: new NoOpLog(),
// These options are all enabled when using the CLI
wranglerConfigPath: true,
packagePath: true,
envPathDefaultFallback: true,
watch: true,
sourceMap: true,
logUnhandledRejections: true,
});

await mf.startServer();
await mf.startScheduler();
import { Miniflare, NoOpLog } from "miniflare";

const mf = new Miniflare({
log: new NoOpLog(),
// These options are all enabled when using the CLI
wranglerConfigPath: true,
packagePath: true,
envPathDefaultFallback: true,
watch: true,
sourceMap: true,
logUnhandledRejections: true,
});

await mf.startServer();
await mf.startScheduler();
Want results from more Discord servers?
Add your server