Sub EnableTestLog()
' Posts a message to the test log
Log.Message("First message.")
' Disables posting messages to the test log
Log.Enabled = false
' Posts a warning to the test log
Log.Warning("This warning won't be posted.")
' ...
' All the messages are ignored
' ...
' Enables posting messages to the test log
Log.Enabled = true
' Posts the event to the test log
Log.Event("Test event.")
End Sub
' The procedure produces the following output:
' First message.
' Test event.
' Posts a message to the test log
Log.Message("First message.")
' Disables posting messages to the test log
Log.Enabled = false
' Posts a warning to the test log
Log.Warning("This warning won't be posted.")
' ...
' All the messages are ignored
' ...
' Enables posting messages to the test log
Log.Enabled = true
' Posts the event to the test log
Log.Event("Test event.")
End Sub
' The procedure produces the following output:
' First message.
' Test event.
No comments:
Post a Comment