need these to publish properly on jsr
This commit is contained in:
12
mod.ts
12
mod.ts
@@ -224,7 +224,7 @@ class ListenersBase {
|
|||||||
for (const cb of typeListeners) (cb as TypeListener)(msg, msgtype, source, time);
|
for (const cb of typeListeners) (cb as TypeListener)(msg, msgtype, source, time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const LoggingListeners = new ListenersBase();
|
const LoggingListeners: ListenersBase = new ListenersBase();
|
||||||
|
|
||||||
enum LogTiming {
|
enum LogTiming {
|
||||||
Sync,
|
Sync,
|
||||||
@@ -242,14 +242,14 @@ class LoggingConfigurationBase {
|
|||||||
|
|
||||||
#timeType: TimeFormat = TimeFormat.Utc;
|
#timeType: TimeFormat = TimeFormat.Utc;
|
||||||
|
|
||||||
get timeFormat() { return this.#timeType }
|
get timeFormat(): TimeFormat { return this.#timeType }
|
||||||
set timeFormat(data) { this.#timeType = data }
|
set timeFormat(data: TimeFormat) { this.#timeType = data }
|
||||||
|
|
||||||
get logTiming() { return this.#timing; }
|
get logTiming(): LogTiming { return this.#timing; }
|
||||||
set logTiming(data) { this.#timing = data }
|
set logTiming(data: LogTiming) { this.#timing = data }
|
||||||
|
|
||||||
}
|
}
|
||||||
const LoggingConfiguration = new LoggingConfigurationBase();
|
const LoggingConfiguration: LoggingConfigurationBase = new LoggingConfigurationBase();
|
||||||
|
|
||||||
export { MessageType, TimeFormat, LogTiming, MessageTypeVisibility, LoggingListeners, LoggingConfiguration };
|
export { MessageType, TimeFormat, LogTiming, MessageTypeVisibility, LoggingListeners, LoggingConfiguration };
|
||||||
export default Logging;
|
export default Logging;
|
||||||
Reference in New Issue
Block a user