No console output with MongoDB : <p>I have connected MongoDB to .NET and I'm trying to save data into the database. The program works fine and my data is inserted into the database, but my understanding from the documentation is that I should be able to see everything that is occurring in the console window as well. This is my sample program that I'm working on.</p>

<pre><code>static void Main(string[] args)
    {
        MainAsync().Wait();
        Console.ReadLine();
    }

    static async Task MainAsync()
    {
        var client = new MongoClient("mongodb://localhost:27017");
        IMongoDatabase db = client.GetDatabase("machines");
        var collection = db.GetCollection&lt;BsonDocument&gt;("cranes");

        var document = new BsonDocument
        {
            { "code", BsonValue.Create("0x657")},
            { "departments", new BsonArray(new[] {"Mech", "Forge"}) },
        };

        await collection.InsertOneAsync(document);
    }
</code></pre>

<p>This is the console output I am seeing when running the program.</p>

<p><a href="https://i.stack.imgur.com/6dWM9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6dWM9.png" alt="console_output"></a></p>

<p>I can see that the data has been succesffully added in MongoDB Compass, but I do not have any feedback in the console window.</p>
