Sha256: 51cdf3545d05914b097d6477fa006a8e87e4ca4ef9cdb3862191bb7d0f7d49f3
Contents?: true
Size: 1.71 KB
Versions: 3
Compression:
Stored size: 1.71 KB
Contents
Dim logmanager, logger Set logmanager = CreateObject("NLog.LogManager") WScript.Echo "Loading config from file 'config8.nlog' with internal logging to console..." logmanager.InternalLogToConsole = true logmanager.InternalLogFile = "internal_log.txt" logmanager.InternalLogLevel = "Info" logmanager.LoadConfigFromFile "config8.nlog" Set logger = CreateObject("NLog.Logger") logger.LoggerName = "TestLogger" logger.Log "Trace", "This is a trace message" logger.Log "Debug", "This is a debugging message" logger.Log "Info", "This is an information message" logger.Log "Warn", "This is a warning message" logger.Log "Error", "This is an error" logger.Log "Fatal", "This is a fatal message" logger.Trace "This is a trace message" logger.Debug "This is a debugging message" logger.Info "This is an information message" logger.Warn "This is a warning message" logger.Error "This is an error" logger.Fatal "This is a fatal message" WScript.Echo "Loading config from file 'config8a.nlog' without internal logging..." logmanager.InternalLogToConsole = false logmanager.InternalLogFile = "internal_log.txt" logmanager.InternalLogLevel = "Fatal" logmanager.LoadConfigFromFile "config8a.nlog" logger.Log "Trace", "This is a trace message" logger.Log "Debug", "This is a debugging message" logger.Log "Info", "This is an information message" logger.Log "Warn", "This is a warning message" logger.Log "Error", "This is an error" logger.Log "Fatal", "This is a fatal message" logger.Trace "This is a trace message" logger.Debug "This is a debugging message" logger.Info "This is an information message" logger.Warn "This is a warning message" logger.Error "This is an error" logger.Fatal "This is a fatal message"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nlog-1.0.0.505.20100822 | docs/examples/web/test.vbs |
nlog-1.0.0.505 | docs/examples/web/test.vbs |
nlog-1.0.0.505-mswin32 | docs/examples/web/test.vbs |