diff --git a/log4javascript/log4javascript.d.ts b/log4javascript/log4javascript.d.ts index 0a4026c85d..98f23d1f72 100644 --- a/log4javascript/log4javascript.d.ts +++ b/log4javascript/log4javascript.d.ts @@ -253,6 +253,8 @@ declare module log4javascript { * Asserts the given expression is true or evaluates to true. If so, nothing is logged. If not, an error is logged at the ERROR level. */ assert(expr: any): void; + + name: string; } // #endregion @@ -262,7 +264,20 @@ declare module log4javascript { /** * Logging event. */ - export class LoggingEvent { } + export class LoggingEvent { + logger: Logger; + timeStamp: Date; + timeStampInMilliseconds: number; + timeStampInSeconds: number; + milliseconds: number; + level: Level; + messages: any[]; + exception: Error; + + getThrowableStrRep: () => string; + getCombinedMessages: () => string; + toString: () => string; + } /** * There are methods common to all appenders, as listed below. @@ -920,6 +935,8 @@ declare module log4javascript { * Returns whether the layout has any custom fields. */ hasCustomFields(): boolean; + + formatWithException(loggingEvent: LoggingEvent): string; } /**