Dreamine.Logging 1.0.2
Dreamine.Logging 프로젝트의 API와 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.Logging.Models.DreamineLogEntry 클래스 참조sealed

더 자세히 ...

Public 멤버 함수

 DreamineLogEntry (DateTimeOffset timestamp, DreamineLogLevel level, string category, string message, Exception? exception, int threadId)

속성

DateTimeOffset Timestamp [get]
DreamineLogLevel Level [get]
string Category [get]
string Message [get]
Exception? Exception [get]
int ThreadId [get]
string TimestampText [get]
string DisplayText [get]

상세한 설명

하나의 Dreamine 로그 항목을 나타냅니다.

DreamineLogEntry.cs 파일의 13 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ DreamineLogEntry()

Dreamine.Logging.Models.DreamineLogEntry.DreamineLogEntry ( DateTimeOffset timestamp,
DreamineLogLevel level,
string category,
string message,
Exception? exception,
int threadId )
inline

T:Dreamine.Logging.Models.DreamineLogEntry 클래스의 새 인스턴스를 초기화합니다.

매개변수
timestamp생성 시각입니다.
level심각도 수준입니다.
category로그 범주이며 비어 있으면 Dreamine이 사용됩니다.
message로그 메시지이며 null이면 빈 문자열이 사용됩니다.
exception연결된 예외입니다.
threadId관리 스레드 ID입니다.

DreamineLogEntry.cs 파일의 164 번째 라인에서 정의되었습니다.

171 {
172 Timestamp = timestamp;
173 Level = level;
174 Category = string.IsNullOrWhiteSpace(category) ? "Dreamine" : category;
175 Message = message ?? string.Empty;
176 Exception = exception;
177 ThreadId = threadId;
178 }

다음을 참조함 : Category, Exception, Level, Message, ThreadId, Timestamp.

속성 문서화

◆ Category

string Dreamine.Logging.Models.DreamineLogEntry.Category
get

로그 범주를 가져옵니다.

DreamineLogEntry.cs 파일의 43 번째 라인에서 정의되었습니다.

43{ get; }

다음에 의해서 참조됨 : DreamineLogEntry(), Dreamine.Logging.Formatters.DreamineTextLogFormatter.Format().

◆ DisplayText

string Dreamine.Logging.Models.DreamineLogEntry.DisplayText
get

간단한 UI 보기에서 사용할 표시 텍스트를 가져옵니다.

DreamineLogEntry.cs 파일의 93 번째 라인에서 정의되었습니다.

94 {
95 get
96 {
97 var text = $"[{TimestampText}] [{Level}] [{Category}] [T{ThreadId}] {Message}";
98
99 if (Exception is null)
100 {
101 return text;
102 }
103
104 return text + Environment.NewLine + Exception;
105 }
106 }

◆ Exception

Exception? Dreamine.Logging.Models.DreamineLogEntry.Exception
get

로그 항목과 연결된 예외를 가져옵니다.

DreamineLogEntry.cs 파일의 63 번째 라인에서 정의되었습니다.

63{ get; }

다음에 의해서 참조됨 : DreamineLogEntry(), Dreamine.Logging.Formatters.DreamineTextLogFormatter.Format().

◆ Level

DreamineLogLevel Dreamine.Logging.Models.DreamineLogEntry.Level
get

로그 항목의 심각도 수준을 가져옵니다.

DreamineLogEntry.cs 파일의 33 번째 라인에서 정의되었습니다.

33{ get; }

다음에 의해서 참조됨 : DreamineLogEntry(), Dreamine.Logging.Formatters.DreamineTextLogFormatter.Format(), Dreamine.Logging.Services.DreamineLogger.Write(), Dreamine.Logging.Sinks.TextFileLogSink.Write().

◆ Message

string Dreamine.Logging.Models.DreamineLogEntry.Message
get

로그 메시지를 가져옵니다.

DreamineLogEntry.cs 파일의 53 번째 라인에서 정의되었습니다.

53{ get; }

다음에 의해서 참조됨 : DreamineLogEntry(), Dreamine.Logging.Formatters.DreamineTextLogFormatter.Format().

◆ ThreadId

int Dreamine.Logging.Models.DreamineLogEntry.ThreadId
get

로그 항목이 생성된 관리 스레드 ID를 가져옵니다.

DreamineLogEntry.cs 파일의 73 번째 라인에서 정의되었습니다.

73{ get; }

다음에 의해서 참조됨 : DreamineLogEntry(), Dreamine.Logging.Formatters.DreamineTextLogFormatter.Format().

◆ Timestamp

DateTimeOffset Dreamine.Logging.Models.DreamineLogEntry.Timestamp
get

로그 항목이 생성된 시각을 가져옵니다.

DreamineLogEntry.cs 파일의 23 번째 라인에서 정의되었습니다.

23{ get; }

다음에 의해서 참조됨 : DreamineLogEntry(), Dreamine.Logging.Formatters.DreamineTextLogFormatter.Format(), Dreamine.Logging.Sinks.TextFileLogSink.Write().

◆ TimestampText

string Dreamine.Logging.Models.DreamineLogEntry.TimestampText
get

서식이 적용된 타임스탬프 텍스트를 가져옵니다.

DreamineLogEntry.cs 파일의 83 번째 라인에서 정의되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: