RuntimeLogs Class
Namespace: PTS.Diagnostics
Assembly: PTS.Diagnostics.dll
Syntax
public static class RuntimeLogs
Inheritance
System.Object
RuntimeLogs
Fields
ThreadId
Declaration
[ThreadStatic]
public static string ThreadId
Field Value
Type | Description |
---|---|
System.String |
Properties
ErrorsViaEmail
Declaration
public static bool ErrorsViaEmail { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IncludeThreadIdInSource
Declaration
public static bool IncludeThreadIdInSource { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
BindToSystemLog(String)
Declaration
public static void BindToSystemLog(string sourceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceName |
Log(Exception, NoticeType)
Declaration
public static void Log(Exception e, NoticeType type = NoticeType.Error)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | |
NoticeType | type |
Log(String, NoticeType)
Declaration
public static void Log(string text, NoticeType type = NoticeType.Info)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
NoticeType | type |
Log(String, Exception, NoticeType)
Declaration
public static void Log(string message, Exception e, NoticeType type = NoticeType.Error)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | e | |
NoticeType | type |
SetEmailProvider()
Declaration
public static void SetEmailProvider()
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()