// You can call this function directly to log to Rainmeter.log // // Rainmeter needs to be configured to allow debug logging, of course. public static unsafe bool Log(LogLevel level, string sText) { return(Rainmeter.LSLog((int)level, Rainmeter.String("C# plugin"), Rainmeter.String(sText)) != 0); }