|
Dreamine.Logging 1.0.2
Dreamine.Logging 프로젝트의 API와 구성 요소를 제공합니다.
|


Public 멤버 함수 | |
| TextFileLogSink (string logDirectory, IDreamineLogFormatter formatter, int flushEveryWriteCount=DefaultFlushEveryWriteCount) | |
| void | Write (DreamineLogEntry entry) |
| void | Dispose () |
Private 멤버 함수 | |
| string | GetFilePath (DateTimeOffset timestamp) |
| void | EnsureWriter (string filePath) |
| void | FlushCore () |
Private 속성 | |
| readonly object | _syncRoot = new() |
| readonly string | _logDirectory |
| readonly IDreamineLogFormatter | _formatter |
| readonly int | _flushEveryWriteCount |
| StreamWriter? | _writer |
| string? | _currentFilePath |
| int | _pendingFlushCount |
| bool | _disposed |
정적 Private 속성 | |
| const int | DefaultFlushEveryWriteCount = 20 |
Dreamine 로그 항목을 날짜별 텍스트 로그 파일에 기록합니다.
현재 날짜 파일을 열린 상태로 유지하고 지정 횟수마다 또는 오류 이상에서 즉시 flush하며 날짜 변경을 자동 처리합니다.
TextFileLogSink.cs 파일의 25 번째 라인에서 정의되었습니다.
|
inline |
로그 디렉터리, 포맷터 및 flush 주기로 T:Dreamine.Logging.Sinks.TextFileLogSink를 초기화합니다.
| logDirectory | 로그 디렉터리 경로이며 비어 있으면 Logs를 사용합니다. |
| formatter | 로그 포맷터입니다. |
| flushEveryWriteCount | flush 사이의 기록 횟수이며 0 이하면 20을 사용합니다. 오류 이상은 즉시 flush합니다. |
| ArgumentNullException | formatter 가 null인 경우 발생합니다. |
TextFileLogSink.cs 파일의 150 번째 라인에서 정의되었습니다.
다음을 참조함 : _flushEveryWriteCount, _formatter, _logDirectory, DefaultFlushEveryWriteCount.
|
inline |
대기 중 내용을 flush하고 파일 작성기를 해제합니다.
TextFileLogSink.cs 파일의 224 번째 라인에서 정의되었습니다.
다음을 참조함 : _disposed, _syncRoot, _writer, FlushCore().

|
inlineprivate |
지정한 파일 경로를 대상으로 하는 작성기를 준비하고 날짜 변경 시 교체합니다.
| filePath | 대상 파일 경로입니다. |
TextFileLogSink.cs 파일의 294 번째 라인에서 정의되었습니다.
다음을 참조함 : _currentFilePath, _writer, FlushCore().
다음에 의해서 참조됨 : Write().


|
inlineprivate |
현재 작성기의 대기 내용을 파일에 반영하고 기록 카운터를 초기화합니다.
TextFileLogSink.cs 파일의 327 번째 라인에서 정의되었습니다.
다음을 참조함 : _pendingFlushCount, _writer.
다음에 의해서 참조됨 : Dispose(), EnsureWriter(), Write().

|
inlineprivate |
로그 디렉터리를 준비하고 타임스탬프에 해당하는 날짜별 파일 경로를 만듭니다.
| timestamp | 로그 타임스탬프입니다. |
TextFileLogSink.cs 파일의 272 번째 라인에서 정의되었습니다.
다음을 참조함 : _logDirectory.
다음에 의해서 참조됨 : Write().

|
inline |
항목을 해당 날짜 파일에 기록하고 구성된 조건에서 flush합니다.
| entry | 기록할 항목입니다. |
| ArgumentNullException | entry 가 null인 경우 발생합니다. |
Dreamine.Logging.Interfaces.IDreamineLogSink를 구현.
TextFileLogSink.cs 파일의 189 번째 라인에서 정의되었습니다.
다음을 참조함 : _disposed, _flushEveryWriteCount, _formatter, _pendingFlushCount, _syncRoot, _writer, EnsureWriter(), FlushCore(), GetFilePath(), Dreamine.Logging.Models.DreamineLogEntry.Level, Dreamine.Logging.Models.DreamineLogEntry.Timestamp.

|
private |
current File Path 값을 보관합니다.
TextFileLogSink.cs 파일의 90 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : EnsureWriter().
|
private |
|
private |
flush Every Write Count 값을 보관합니다.
TextFileLogSink.cs 파일의 72 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : TextFileLogSink(), Write().
|
private |
formatter 값을 보관합니다.
TextFileLogSink.cs 파일의 63 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : TextFileLogSink(), Write().
|
private |
log Directory 값을 보관합니다.
TextFileLogSink.cs 파일의 54 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : GetFilePath(), TextFileLogSink().
|
private |
pending Flush Count 값을 보관합니다.
TextFileLogSink.cs 파일의 99 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : FlushCore(), Write().
|
private |
|
private |
writer 값을 보관합니다.
TextFileLogSink.cs 파일의 81 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dispose(), EnsureWriter(), FlushCore(), Write().
|
staticprivate |
Default Flush Every Write Count 값을 보관합니다.
TextFileLogSink.cs 파일의 35 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : TextFileLogSink().