SetLogMask(LogMask As Long)

Application object

Sets the bit mask that determines which events to log:

Value

Meaning

1

All events fired. Even events that do not have event handlers are logged.

2

All the events that have event handlers. You will see the value returned by the handler and any error that occurs.

3

All method calls. You will see the value returned by the method or arguments used in the method call and any error that occurs.

4

Reserved for internal use

5

If set, the log string will contain a time and date stamp.

6-32

Reserved for future events.

If you set all bits to zero, nothing is logged.

By default, SetLogMask is not called and nothing is logged.

Related topic

The Application object