|
Wasatch.NET 2.4.14
.NET application driver for Wasatch Photonics spectrometers
|
This interface is provided for COM clients (Delphi etc) who seem to find it useful. I don't know that .NET users would find much benefit in it. More...
Public Member Functions | |
| void | debug (string fmt, params Object[] obj) |
| log a debug message | |
| bool | debugEnabled () |
| Whether debugging is enabled. | |
| bool | error (string fmt, params Object[] obj) |
| log an error message | |
| string | getLastError () |
| peel-off the most recent error | |
| bool | hasError () |
| whether any recent errors have occurred | |
| void | hexdump (byte[] buf, string prefix="") |
| void | info (string fmt, params Object[] obj) |
| log an info message | |
| void | logString (LogLevel lvl, string msg) |
| log a string at arbitrary level w/o arguments | |
| void | save (string pathname) |
| write TextBox contents to a text file | |
| void | setPathname (string path) |
| If you'd like log messages written to a text file, specify the path here. | |
| void | setTextBox (TextBox tb) |
| If you're developing in WinForms, pass a TextBook into the Logger for instant visualization! | |
Properties | |
| LogLevel | level [get, set] |
This interface is provided for COM clients (Delphi etc) who seem to find it useful. I don't know that .NET users would find much benefit in it.
| void WasatchNET.ILogger.debug | ( | string | fmt, |
| params Object[] | obj | ||
| ) |
log a debug message
| fmt | see String.Format() fmt |
| obj | see String.Format() args |
Implemented in WasatchNET.Logger.
| bool WasatchNET.ILogger.debugEnabled | ( | ) |
| bool WasatchNET.ILogger.error | ( | string | fmt, |
| params Object[] | obj | ||
| ) |
log an error message
| fmt | see String.Format() fmt |
| obj | see String.Format() args |
Implemented in WasatchNET.Logger.
| string WasatchNET.ILogger.getLastError | ( | ) |
peel-off the most recent error
other errors will remain in the "recent" queue; this does not necessary clear hasError()
Implemented in WasatchNET.Logger.
| bool WasatchNET.ILogger.hasError | ( | ) |
whether any recent errors have occurred
Implemented in WasatchNET.Logger.
| void WasatchNET.ILogger.hexdump | ( | byte[] | buf, |
| string | prefix = "" |
||
| ) |
Implemented in WasatchNET.Logger.
| void WasatchNET.ILogger.info | ( | string | fmt, |
| params Object[] | obj | ||
| ) |
log an info message
| fmt | see String.Format() fmt |
| obj | see String.Format() args |
Implemented in WasatchNET.Logger.
| void WasatchNET.ILogger.logString | ( | LogLevel | lvl, |
| string | msg | ||
| ) |
log a string at arbitrary level w/o arguments
| lvl | a valid LogLevel |
| msg | message |
Provided for client languages that have difficulty passing an empty params Object[] array
Implemented in WasatchNET.Logger.
| void WasatchNET.ILogger.save | ( | string | pathname | ) |
write TextBox contents to a text file
| pathname | path to create |
only works if setTextBox() has been called; otherwise, use setPathname()
Implemented in WasatchNET.Logger.
| void WasatchNET.ILogger.setPathname | ( | string | path | ) |
If you'd like log messages written to a text file, specify the path here.
Make sure the directory exists and is writable.
| path | output path (e.g. "\\tmp\\WasatchNET.log") |
Implemented in WasatchNET.Logger.
| void WasatchNET.ILogger.setTextBox | ( | TextBox | tb | ) |
If you're developing in WinForms, pass a TextBook into the Logger for instant visualization!
| tb | the TextBox control where you would like log messages to appear |
Implemented in WasatchNET.Logger.
|
getset |
Implemented in WasatchNET.Logger.