![]() |
Energy Core Library
|
Classes | |
| class | Class |
| struct | Code |
| Bug message code. May be numbered, litereal or both. More... | |
| struct | Entry |
| Bug message entry. More... | |
Static Public Member Functions | |
| static void | SetExceptionMessageAppendNameFormat (string value) |
| static string | ExceptionMessage (Exception exception, bool trace) |
| Return exception message More... | |
| static string | ExceptionMessage (Exception exception) |
| Return exception message More... | |
| static string | GetExceptionMessage (Exception exception, bool trace) |
| Return exception message More... | |
| static string | GetExceptionMessage (Exception exception, bool trace, string name) |
| static string | GetExceptionMessage (Exception exception, bool trace, bool includeClassName) |
| static string | ThreadIdHex (System.Threading.Thread thread) |
| Get thread id as hex string. More... | |
| static string | ThreadIdHex () |
| Get current thread id as hex string. More... | |
| static string | CallingMethod (int stack) |
| Return calling method name More... | |
| static string | CallingMethod () |
| Return calling method name More... | |
| static string | FormatDebugOutput (string message) |
| static void | Catch (Exception exception) |
| Handle exception More... | |
| static void | Write (string message) |
| Write debug message More... | |
| static void | Write (Code code, string message) |
| Write debug message with numeric code which may be suppressed or limited. More... | |
| static void | Write (Code code, Energy.Base.Anonymous.String action) |
| Write debug message with numeric code which may be suppressed or limited. Provide a function that returns message and will be invoked only if not suppressed. More... | |
| static void | Write (Exception exception) |
| Write debug message from an exception More... | |
| static void | Write (Code code, Exception exception) |
| Write debug message from an exception with numeric code which may be suppressed or limited. More... | |
| static void | WriteFormat (string format, params object[] args) |
| Write debug message More... | |
| static void | WriteFormat (IFormatProvider provider, string format, params object[] args) |
| Write debug message More... | |
| static Energy.Base.Trap | Trap (double timeLimit, Energy.Base.Anonymous.Function< TimeSpan > action) |
| Create time trap for execution. While disposed, it will invoke optional action. More... | |
| static Energy.Base.Trap | Trap (double timeLimit, Energy.Base.Anonymous.Function action) |
| Create time trap for execution. While disposed, it will invoke optional action. More... | |
| static void | Suppress (Code code) |
| Suppress message identified by code. More... | |
| static void | Suppress (Code code, bool suppress) |
| Suppress message identified by code. Optionaly "unsuppress" by calling with suppress:false parameter. More... | |
| static bool | IsSuppressed (Code code) |
Static Public Attributes | |
| static Energy.Base.Switch | ExceptionTrace |
| Exception trace switch More... | |
| static Energy.Base.Switch | DebugOutputTime |
| Use time when writing to System.Diagnostics.Debug More... | |
| static Energy.Base.Switch | DebugOutputCode |
| Prefix with code number when writing to System.Diagnostics.Debug More... | |
Properties | |
| static Energy.Core.Log.Logger | Logger [set] |
| Log More... | |
| static Entry | Last [get, set] |
| Last entry More... | |
|
static |
Return calling method name
| stack | int |
|
static |
Return calling method name
|
static |
Handle exception
| exception |
|
static |
Return exception message
| exception | Exception object |
| trace | Include stack trace |
|
static |
Return exception message
| exception | Exception object |
|
static |
|
static |
Return exception message
| exception | Exception object |
| trace | Include stack trace |
|
static |
|
static |
|
static |
|
static |
|
static |
Suppress message identified by code.
| code |
|
static |
Suppress message identified by code. Optionaly "unsuppress" by calling with suppress:false parameter.
| code | |
| suppress |
|
static |
Get thread id as hex string.
| thread |
|
static |
Get current thread id as hex string.
|
static |
Create time trap for execution. While disposed, it will invoke optional action.
| timeLimit | Time limit in seconds. When finished in shorter time, action will not be executed. |
| action | Action when time exceeds limit |
|
static |
Create time trap for execution. While disposed, it will invoke optional action.
| timeLimit | Time limit in seconds. When finished in shorter time, action will not be executed. |
| action | Action when time exceeds limit |
|
static |
Write debug message
| message |
|
static |
Write debug message with numeric code which may be suppressed or limited.
| code | |
| message |
|
static |
Write debug message with numeric code which may be suppressed or limited. Provide a function that returns message and will be invoked only if not suppressed.
| code | |
| action |
|
static |
Write debug message from an exception
| exception |
|
static |
Write debug message from an exception with numeric code which may be suppressed or limited.
| code | |
| exception |
|
static |
Write debug message
| format | |
| args |
|
static |
Write debug message
| provider | |
| format | |
| args |
|
static |
Prefix with code number when writing to System.Diagnostics.Debug
|
static |
Use time when writing to System.Diagnostics.Debug
|
static |
Exception trace switch
|
staticgetset |
Last entry
|
staticset |