public void TestMethodAllLogType() { var myLogger = new Stf.Utilities.StfLogger { FileName = @"c:\temp\unittestlogger_TestMethodAllLogType.html", LogLevel = LogLevel.Internal }; myLogger.LogError("LogError"); myLogger.LogWarning("LogWarning"); myLogger.LogInfo("LogInfo"); myLogger.LogDebug("LogDebug"); // normal logging functions - models and adapters myLogger.LogTrace("LogTrace"); myLogger.LogInternal("LogInternal"); // Header logging functions - testscripts myLogger.LogHeader("LogHeader"); myLogger.LogSubHeader("LogSubHeader"); myLogger.LogFunctionEnter(LogLevel.Info, "Int", "NameOfFunction", new[] { "arg1", "arg2" }, new object[] { null }); myLogger.LogFunctionExit(LogLevel.Info, "NameOfFunction", 42); myLogger.LogFunctionEnter(LogLevel.Info, "Int", "NameOfFunctionShort"); myLogger.LogFunctionExit(LogLevel.Info, "NameOfFunctionShort"); // used solely by Assert functions myLogger.LogPass("testStepName LogPass", "LogPass"); myLogger.LogFail("testStepName LogFail", "LogFail"); myLogger.LogKeyValue("SomeKey", "SomeValue", "LogKeyValue"); myLogger.LogGet(LogLevel.Info, "MyTestProperty", myLogger); myLogger.LogSet(LogLevel.Info, "MyTestProperty", myLogger); myLogger.LogAutomationIdObject(LogLevel.Internal, myLogger, "Using myLogger as AID for test"); myLogger.SetRunStatus(); }