2219 Commits

Author SHA1 Message Date
peteriman
adbd3691af
Added automated testing for file descriptor leak 2022-01-04 15:54:44 +08:00
peteriman
60568bf3de
Added automated testing for file appender single SIGHUP listener 2021-12-28 16:15:11 +08:00
peteriman
ac72e99de3
Creates a 1 SIGHUP handler instead
I think the issue is that each file appender instance adds a SIGHUP handler, when they could all use the same handler. I'll see if I can work on a fix.

_Originally posted by @nomiddlename in https://github.com/log4js-node/log4js-node/issues/852#issuecomment-496316399_
2021-12-17 00:41:48 +08:00
Angelo Polo
c5ea84764d test: Add typescript recording usage example 2021-11-11 11:50:24 +01:00
Angelo Polo
5b320e3b2f fix: Expose recording in typescript types 2021-11-11 10:51:57 +01:00
Aleksandr Nefedov
a3e6363cd9 dateFile error handling fix 2 2021-10-04 18:05:19 +03:00
Aleksandr Nefedov
9433b12eac dateFile error handling fix 2021-10-04 14:55:48 +03:00
Jhonatan Teixeira
fa366c8abc fix: on newer nodejs versions listening to socket errors are required 2021-07-14 09:49:30 -03:00
Nicolas Gimenez
03484d63a3 fix(typing): use any for Config for now 2021-06-20 22:29:57 +02:00
dependabot[bot]
761139ed76
chore(deps): bump glob-parent from 5.1.1 to 5.1.2
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 03:28:42 +00:00
Richard Hinkamp
fc1ccbeb41 Shutdown cb arg can be undefined + always return null 2021-06-09 21:19:38 +02:00
Nicolas Gimenez
92666bf609 fix(formatting): rollback formatting changes 2021-05-13 17:13:52 +02:00
Nicolas Gimenez
5a45e75d5d feat(typing): improving @types for AppenderModule 2021-05-13 16:48:43 +02:00
dependabot[bot]
834d2dc7a4
chore(deps): bump hosted-git-info from 2.7.1 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-08 23:42:39 +00:00
dependabot[bot]
9772a44c43
chore(deps): bump lodash from 4.17.14 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-06 18:45:50 +00:00
saulzhong
db1a26556b fix(types): add defaultLevel parameter declaration to the function getLevel 2021-04-23 13:36:22 +08:00
dependabot[bot]
de83b12087
chore(deps): bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 15:54:48 +00:00
abernh
76f91427ba fix(logger.log): warn on invalid log-level
a warning is logged if the `log` method is used with an unknown log-level
this happens whenever people confuse the `log` method with yet another log-level-short method (like in the browser console.log)
adjusted `newLevel-test` accordingly

rel: https://github.com/log4js-node/log4js-node/issues/1042

Signed-off-by: abernh <a.bernhard@23go.de>
2021-02-23 12:02:15 +01:00
dependabot[bot]
344dd147f7
chore(deps): bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-11 09:40:16 +00:00
dependabot[bot]
36b7ba1fe0
chore(deps): bump yargs-parser from 13.1.1 to 13.1.2
Bumps [yargs-parser](https://github.com/yargs/yargs-parser) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/yargs/yargs-parser/releases)
- [Changelog](https://github.com/yargs/yargs-parser/blob/master/docs/CHANGELOG-full.md)
- [Commits](https://github.com/yargs/yargs-parser/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-09 14:08:53 +00:00
dependabot[bot]
da8dc37d1b
chore(deps-dev): bump codecov from 3.6.5 to 3.7.1
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.6.5 to 3.7.1.
- [Release notes](https://github.com/codecov/codecov-node/releases)
- [Commits](https://github.com/codecov/codecov-node/compare/v3.6.5...v3.7.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-21 12:35:13 +00:00
Ventsislav Dimitrov
e14876a147 chore: remove duplicate backups type 2020-07-11 22:41:03 +01:00
Ventsislav Dimitrov
1cb9893a50 fix: file appender types 2020-07-11 22:38:54 +01:00
Techmunk
4075ec5b82 fix: tcp appender was missing from typescript typings 2020-06-16 20:39:42 +10:00
Techmunk
0a027d1dff fix: tcp appender was missing from core appenders 2020-06-16 20:39:22 +10:00
abetomo
b5f320e0fd test(improvement): Add tearDown to unit tests
This leaves the following Untracked files.
`test/tap/freeze-date-file-test`
2020-05-26 09:19:32 +09:00
Gareth Jones
f8d46a9392
Merge pull request #1019 from abetomo/feature/add_nodejs14_to_travis_config
test(travis-ci): Add Node.js14 to Travis CI configuration
2020-05-25 13:14:20 +10:00
abetomo
b342383276 test(travis-ci): Add Node.js14 to Travis CI configuration 2020-05-25 09:14:32 +09:00
Gareth Jones
fcf95482f3 6.3.0 v6.3.0 2020-05-25 08:56:12 +10:00
Gareth Jones
fc2dc91931 docs: changelog for 6.3.0 2020-05-25 08:55:55 +10:00
Gareth Jones
5c5f54fcf7 fix: tcp-server needs to be loaded even if no categories 2020-05-25 08:55:04 +10:00
Gareth Jones
42f9a33e4e
Merge pull request #1016 from abetomo/feature/change_indentation_to_soft_tabs
style(indentation): change indentation to soft tabs
2020-05-25 08:38:05 +10:00
Gareth Jones
e231c04f13
Merge branch 'master' into feature/change_indentation_to_soft_tabs 2020-05-25 08:36:57 +10:00
Gareth Jones
8a152636a4
Merge pull request #1018 from iassasin/docs-other-appenders
Add section in documentation for links to other appenders
2020-05-25 08:35:14 +10:00
Gareth Jones
ff475b9d07
Merge pull request #1015 from lauren-li/fix-webpack-fileSync
fix: fileSync was missing from core appenders
2020-05-25 08:28:35 +10:00
Gareth Jones
493736700c
Merge pull request #1014 from rnd-debug/docs-influxAppender
docs: adding mention of InfluxDB appender
2020-05-25 08:26:53 +10:00
Gareth Jones
a6eca3e391
Merge pull request #1006 from rtvd/ts-access-for-category
Access to 'category' field of logger objects in TS
2020-05-25 08:24:32 +10:00
Gareth Jones
fe0713ae08
Merge pull request #1004 from wataash/style-param
style: conform @param to official style
2020-05-25 08:22:59 +10:00
Gareth Jones
c830d842c3
Merge pull request #1003 from rnd-debug/docs-categories
Describe categories inheritance
2020-05-25 08:21:37 +10:00
Gareth Jones
4b0c6f41ad
Merge pull request #1002 from rnd-debug/donot-create-appender-if-not-used
Donot create appender if not used
2020-05-25 08:19:47 +10:00
Gareth Jones
ff3808403c
Merge pull request #1001 from BlueCocoa/master
Added support for removing embedded ANSI color sequence for file appender
2020-05-25 08:18:33 +10:00
iassasin
6d0edf1f2c add section in documentation for links to other appenders 2020-05-24 13:06:30 +03:00
abetomo
e27926a08e style(indentation): change indentation to soft tabs
The JavaScript code was indented with spaces, so I adjusted it.
2020-05-22 15:58:49 +09:00
Lauren Li
5468dd7c41 fix: fileSync was missing from core appenders 2020-05-19 16:45:41 -04:00
rnd-debug
8d2f69c336 docs: adding mention of InfluxDB appender 2020-05-19 06:04:46 +02:00
Cocoa
52185a4984
Fixed ESLint no-else-return error
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-09 04:39:04 +08:00
Cocoa
8cfe1627c6
Only detects ANSI color codes for data in string type
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-09 04:20:49 +08:00
Cocoa
40b5f09fe8
Using regexp literal and .map instead of a loop for replacing
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-07 16:23:20 +08:00
Denys Rtveliashvili
d65cc3b21b Access to 'category' field of logger objects in TS 2020-05-06 18:02:58 +01:00
Wataru Ashihara
a81500b7e6
style: conform @param to official style
ref. https://jsdoc.app/tags-param.html
2020-05-04 09:13:36 +09:00