Skip to content

Commit

Permalink
fix: tcp appender was missing from typescript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
techmunk committed Jun 16, 2020
1 parent 0a027d1 commit 4075ec5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions types/log4js.d.ts
Expand Up @@ -236,6 +236,23 @@ export interface StandardOutputAppender {
layout?: Layout;
}

/**
* TCP Appender
*
* @see https://log4js-node.github.io/log4js-node/tcp.html
*/
export interface TCPAppender {
type: 'tcp';
// defaults to 5000
port?: number
// defaults to localhost
host?: string
// default to __LOG4JS__
endMsg?: string
// defaults to a serialized log event
layout?: Layout;
}

export interface CustomAppender {
type: string | AppenderModule;
[key: string]: any;
Expand All @@ -257,6 +274,7 @@ export type Appender = CategoryFilterAppender
| RecordingAppender
| StandardErrorAppender
| StandardOutputAppender
| TCPAppender
| CustomAppender;

export interface Levels {
Expand Down

0 comments on commit 4075ec5

Please sign in to comment.