8000 Merge pull request #678 from log4js-node/deprecate-hipchat · xyz-data/log4js-node@178e95e · GitHub
[go: up one dir, main page]

Skip to content

Commit 178e95e

Browse files
authored
Merge pull request log4js-node#678 from log4js-node/deprecate-hipchat
chore: deprecated hipchat appender
2 parents 7a005a4 + 35aa894 commit 178e95e

File tree

3 files changed

+4
-53
lines changed

3 files changed

+4
-53
lines changed

docs/appenders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ The following appenders are included with log4js. Some require extra dependencie
2424
* [dateFile](dateFile.md)
2525
* [file](file.md)
2626
* [fileSync](fileSync.md)
27-
* [hipchat](hipchat.md)
2827
* [logFaces-HTTP](logFaces-HTTP.md)
2928
* [logFaces-UDP](logFaces-UDP.md)
3029
* [logLevelFilter](logLevelFilter.md)
@@ -46,6 +45,7 @@ The following appenders are included with log4js. Some require extra dependencie
4645
The following appenders are supported by log4js, but will issue deprecation warnings from version 2.6 onwards - they will be removed from the log4js core in version 3. If you are using these appenders, you should alter your dependencies to include them explicitly.
4746

4847
* [gelf](https://github.com/log4js-node/gelf)
48+
* [hipchat](https://github.com/log4js-node/hipchat)
4949
* [loggly](https://github.com/log4js-node/loggly)
5050

5151
For example, if you were previously using the gelf appender (`type: 'gelf'`) then you should add `@log4js-node/gelf` to your dependencies and change the type to `type: '@log4js-node/gelf'`.

docs/hipchat.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

lib/appenders/hipchat.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ function hipchatConfigure(config, layouts) {
7979
layout = layouts.layout(config.layout.type, config.layout);
8080
}
8181

82-
return hipchatAppender(config, layout);
82+
const appender = hipchatAppender(config, layout);
83+
appender.deprecated = '@log4js-node/hipchat';
84+
return appender;
8385
}
8486

8587
module.exports.configure = hipchatConfigure;

0 commit comments

Comments
 (0)
0