You are here: Tuning > Debugging db4o > Debug Messaging System

Debug Messaging System

You can turn on the db4o debug messages, which show more information about what db4o is doing.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.MessageLevel = 4;
CommonConfigurationExamples.cs: Change the message-level
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.MessageLevel = 4
CommonConfigurationExamples.vb: Change the message-level

These messages show you in detail what db4o is doing and processing. You can redirect the message output to any output stream. By default the console output stream is used.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.OutStream = Console.Out;
CommonConfigurationExamples.cs: Change the output stream
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.OutStream = Console.Out
CommonConfigurationExamples.vb: Change the output stream