Log Struct¶
Definition¶
namespace Sharplog
Constructors¶
| Name |
|---|
Log(LogLevel, object, Type, MethodBase, string, Exception, Level, string, DateTime, string) |
Properties¶
| Name | Type | GET | SET |
|---|---|---|---|
Level |
LogLevel | ||
Class |
Type | ||
Function |
MethodBase | ||
Message |
object | ||
Tag |
string | ||
Exception |
Exception | ||
LevelSettings |
Level | ||
Format |
string | ||
Time |
DateTime | ||
StackTrace |
string |
Constructors¶
Log(LogLevel, object, Type, MethodBase, string, Exception, Level, string, DateTime, string)¶
-
Initializes a new instance of the Log struct.
Parameter¶
function MethodBase ·
The function.
tagstring ·- The tag.
exceptionException ·- The exception.
levelSettingsLevel ·- The level settings.
formatstring ·- The format.
timeDateTime ·- The time.
stackTracestring ·- The stackTrace.
Properties¶
Level¶
- Type: LogLevel
-
Gets or sets the level of the log.
Class¶
- Type: Type
-
Gets or sets the sender type.
Function¶
- Type: MethodBase
-
Gets or sets the sender function.
Message¶
- Type: object
-
Gets or sets the message.
Tag¶
- Type: string
-
Gets or sets the tag.
Exception¶
- Type: Exception
-
Gets or sets the exception.
Format¶
- Type: string
-
Gets or sets the format of the log.
LevelSettings¶
- Type: Level
-
Gets or sets the level settings.
Time¶
- Type: DateTime
-
Gets or sets the level settings.
StackTrace¶
- Type: DateTime
-
Gets or sets the stack trace.