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


Public 멤버 함수 | |
| InMemoryLogStore () | |
| InMemoryLogStore (int capacity) | |
| IReadOnlyList< DreamineLogEntry > | GetEntries () |
| void | Add (DreamineLogEntry entry) |
| void | Clear () |
| void | Write (DreamineLogEntry entry) |
이벤트 | |
| EventHandler< DreamineLogEntry >? | LogAdded |
| Dreamine.Logging.Interfaces.IDreamineLogStore(으)로부터 상속된 이벤트 | |
| EventHandler< DreamineLogEntry >? | LogAdded |
Private 속성 | |
| readonly object | _syncRoot = new() |
| readonly Queue< DreamineLogEntry > | _entries |
| readonly int | _capacity |
제한된 링 버퍼를 사용해 Dreamine 로그 항목을 메모리에 저장합니다.
Queue<T>를 사용해 삽입당 O(1)로 용량을 제한하며 스레드로부터 안전합니다.
InMemoryLogStore.cs 파일의 25 번째 라인에서 정의되었습니다.
|
inline |
기본 용량 1000으로 InMemoryLogStore를 초기화합니다.
InMemoryLogStore.cs 파일의 73 번째 라인에서 정의되었습니다.
|
inline |
지정한 용량으로 T:Dreamine.Logging.Services.InMemoryLogStore를 초기화합니다.
| capacity | 유지할 최대 항목 수이며 0 이하면 1000을 사용합니다. |
InMemoryLogStore.cs 파일의 94 번째 라인에서 정의되었습니다.
|
inline |
로그 항목을 추가하고 용량을 초과한 가장 오래된 항목을 제거합니다.
| entry | 추가할 항목입니다. |
| ArgumentNullException | entry 가 null인 경우 발생합니다. |
Dreamine.Logging.Interfaces.IDreamineLogStore를 구현.
InMemoryLogStore.cs 파일의 148 번째 라인에서 정의되었습니다.
다음을 참조함 : _capacity, _entries, _syncRoot, LogAdded.
다음에 의해서 참조됨 : Write().

|
inline |
저장된 모든 로그 항목을 지웁니다.
Dreamine.Logging.Interfaces.IDreamineLogStore를 구현.
InMemoryLogStore.cs 파일의 175 번째 라인에서 정의되었습니다.
|
inline |
저장된 로그 항목의 스냅샷을 가져옵니다.
Dreamine.Logging.Interfaces.IDreamineLogStore를 구현.
InMemoryLogStore.cs 파일의 116 번째 라인에서 정의되었습니다.
|
inline |
로그 출력 계약을 통해 항목을 저장소에 추가합니다.
| entry | 기록할 항목입니다. |
| ArgumentNullException | entry 가 null인 경우 발생합니다. |
Dreamine.Logging.Interfaces.IDreamineLogSink를 구현.
InMemoryLogStore.cs 파일의 207 번째 라인에서 정의되었습니다.
다음을 참조함 : Add().

|
private |
capacity 값을 보관합니다.
InMemoryLogStore.cs 파일의 53 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Add(), InMemoryLogStore().
|
private |
entries 값을 보관합니다.
InMemoryLogStore.cs 파일의 44 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Add(), Clear(), GetEntries(), InMemoryLogStore().
|
private |
sync Root 값을 보관합니다.
InMemoryLogStore.cs 파일의 35 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Add(), Clear(), GetEntries().
| EventHandler<DreamineLogEntry>? Dreamine.Logging.Services.InMemoryLogStore.LogAdded |