New functions Log::disable_stream() and Log::enable_stream().

When disabled, all outout to a stream will be ignored (but no error
raised).
This commit is contained in:
Robin Sommer 2011-03-08 17:54:11 -08:00
parent 88d114053c
commit 4b7c5905f1
6 changed files with 96 additions and 4 deletions

View file

@ -67,6 +67,8 @@ public:
// These correspond to the BiFs visible on the scripting layer. The
// actual BiFs just forward here.
bool CreateStream(EnumVal* id, RecordVal* stream);
bool EnableStream(EnumVal* id);
bool DisableStream(EnumVal* id);
bool AddFilter(EnumVal* id, RecordVal* filter);
bool RemoveFilter(EnumVal* id, StringVal* name);
bool RemoveFilter(EnumVal* id, string name);