Allow creating logger instances on the Wine side

So we can log filterable messages from the Wine side. Will be used to
warn about failed query interface calls.
This commit is contained in:
Robbert van der Helm
2020-12-25 15:14:30 +01:00
parent 70cb6dad89
commit cc2e12c8e4
2 changed files with 26 additions and 0 deletions
+7
View File
@@ -85,6 +85,13 @@ class Logger {
*/
static Logger create_from_environment(std::string prefix = "");
/**
* Create a special logger instance that outputs directly to STDERR without
* any prefixes. This is used to be able to log filterable messages from the
* Wine side of things.
*/
static Logger create_wine_stderr();
/**
* Write a message to the log, prefixing it with a timestamp and this
* logger's prefix string.