Disable log in mountebank

131 views
Skip to first unread message

Aman Kuma

unread,
Nov 9, 2021, 5:44:55 AM11/9/21
to mountebank-discuss
Hi I'm new to mountebank and I was mocking some of the api's.
I want to disable the logging i.e I dont want my service to create those two files name mb.log and mb.log1. I used nologfile flag but still the files are getting created.
I'm following a tutorial this tutorial.
Can anyone please help me out

Bob Ruub

unread,
Dec 19, 2021, 10:09:14 PM12/19/21
to mountebank-discuss
Hi, looking at that tutorial its uses node to call mountebank internally so to speak, not a technique I've had experience with.

At the top of that tutorial it notes.

Note: Mountebank can be used as a standalone application by installing it globally using the command npm install -g mountebank. You can then run it with the mb command and add mocks using REST requests.

Using this approach, running it with the mb command I've no issues using the nologfile option

node ./mountebank/bin/mb --configfile imposters.ejs --allowInjection --port 12003 --nologfile
Reply all
Reply to author
Forward
0 new messages