Skip to content

agent-plugin-logging / Exports / FileLogStorage

Class: FileLogStorage

File log storage (placeholder implementation)

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new FileLogStorage(filePath, formatter?): FileLogStorage

Parameters

NameType
filePathstring
formatter?ILogFormatter

Returns

FileLogStorage

Defined in

agent-plugin-logging/src/storages/file-storage.ts:13

Methods

write

write(entry): Promise<void>

Parameters

NameType
entryILogEntry

Returns

Promise<void>

Implementation of

ILogStorage.write

Defined in

agent-plugin-logging/src/storages/file-storage.ts:19


flush

flush(): Promise<void>

Returns

Promise<void>

Implementation of

ILogStorage.flush

Defined in

agent-plugin-logging/src/storages/file-storage.ts:35


close

close(): Promise<void>

Returns

Promise<void>

Implementation of

ILogStorage.close

Defined in

agent-plugin-logging/src/storages/file-storage.ts:40

Released under the MIT License.