Lam Wei Li
51ac865bef
Merge pull request #1103 from polo-language/recording-typescript
...
Expose recording in typescript
2022-01-19 02:04:45 +08:00
Lam Wei Li
653a20f1f1
Merge pull request #1028 from techmunk/master
...
Fix TCP appender with Webpack and Typescript
2022-01-19 02:02:43 +08:00
Lam Wei Li
c13915587d
Merge pull request #1079 from nicobao/improve-typedefs
...
feat(typing): improving @types for AppenderModule
2022-01-19 01:52:37 +08:00
Lam Wei Li
29e6949fc8
Merge pull request #1115 from ZLundqvist/improve-typedefs
...
fix(types): add level parameter declaration to Logger.log function
2022-01-12 02:35:26 +08:00
Zack Lundqvist
e7f6784e88
fix(formatting): remove spacing
2022-01-10 16:40:36 +01:00
Lam Wei Li
a9dc485e71
fix(types): logger level types
2022-01-10 11:25:20 +08:00
Lam Wei Li
82e38b212d
Merge pull request #1072 from saulzhong/master
...
fix(types): add defaultLevel parameter declaration to the function ge…
2022-01-10 11:16:58 +08:00
Lam Wei Li
b521274b0b
fix(types): logger _log() types
2022-01-10 10:46:41 +08:00
Lam Wei Li
d5dcf974d9
fix(types): union level type (Level | string) to the function getLevel
2022-01-10 10:41:35 +08:00
Lam Wei Li
855143b45c
Merge pull request #1031 from vdmtrv/fix/file-appender-types
...
fix: file appender types
2022-01-10 10:32:28 +08:00
Lam Wei Li
abecb0816e
fix: fileSync appender types
2022-01-10 10:28:39 +08:00
ZLundqvist
0a2e0da5ed
fix(types): add level parameter declaration to Logger.log function
2022-01-07 14:24:20 +01: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
Nicolas Gimenez
03484d63a3
fix(typing): use any for Config for now
2021-06-20 22:29:57 +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
saulzhong
db1a26556b
fix(types): add defaultLevel parameter declaration to the function getLevel
2021-04-23 13:36:22 +08: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
Gareth Jones
e231c04f13
Merge branch 'master' into feature/change_indentation_to_soft_tabs
2020-05-25 08:36:57 +10: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
Denys Rtveliashvili
d65cc3b21b
Access to 'category' field of logger objects in TS
2020-05-06 18:02:58 +01:00
Gareth Jones
cb6d8b0a8f
Merge pull request #972 from aaron-edwards/master
...
fix: Adds guards for undefiend callback functions in shutdown method
2020-01-30 08:26:19 +11:00
Techmunk
bb841d3ced
fix(types): mark log level method in Logger class declaration.
2020-01-24 10:19:37 +10:00
aaropn-edwards
a1197982e2
fix: Adds guards for undefiend callback functions in shutdown method
...
This fixes issue #971
2019-11-21 10:14:17 +11:00
Gareth Jones
42d38e6236
docs: fixed a couple of spelling errors
2019-07-10 08:46:15 +10:00
Gareth Jones
7b4cfbe3a1
chore: removed unnecessary type
2019-06-26 08:01:52 +10:00
Gareth Jones
39cd2ef3f6
docs: added explanation of passing appender module in config, and types
2019-06-26 07:57:28 +10:00
程俊超
09d7b32425
TS Interface: remove top level enableCallStack
2019-06-19 11:32:24 +08:00
程俊超
ebc7f98599
add to enableCallStack to Configuration Interface
...
add to enableCallStack to Configuration Interface
2019-06-18 16:38:38 +08:00
leak4mk0
340fafb749
Fix type definition.
2019-05-12 09:22:40 +09:00
Gareth Jones
789281f5c7
Merge pull request #872 from Ivkaa/patch-1
...
Add missing types for Level
2019-05-09 08:37:53 +10:00
Ivkaa
05f91c506a
Add Level types
2019-05-02 10:32:50 +02:00
Gareth Jones
04c385c201
Merge pull request #845 from xinbenlv/patch-1
...
Allow anything in the addLayout
2019-05-02 08:48:25 +10:00
Ivkaa
0902620436
Add missing types for addLevels
2019-04-30 11:12:19 +02:00
xinbenlv
3d529acf2a
Allow anything in the addLayout
...
per
# Adding your own layouts
You can add your own layouts by calling `log4js.addLayout(type, fn)` before calling `log4js.configure`. `type` is the label you want to use to refer to your layout in appender configuration. `fn` is a function that takes a single object argument, which will contain the configuration for the layout instance, and returns a layout function. A layout function takes a log event argument and **returns a string (usually, although you could return anything as long as the appender knows what to do with it).**
2019-03-11 21:49:06 -07:00
blakambr
d271722170
feat(connectLogger): add status code rulesets
2018-12-19 16:52:15 +11:00
blakambr
84437ef51e
feat(connectLogger): added status code rulesets + tests
2018-12-19 16:50:33 +11:00
Mattia Capitanio
80ca5965cb
feat(noLogFilter): added no log filter regexp in general config
2018-12-02 17:08:39 +01:00
Gareth Jones
8e4bfb5310
fix( #687 ): shutdown callback arg is not optional
2018-08-14 07:38:03 +10:00
Philip White
22c13dd08e
fix: Document log-format function, allow it in TypeScript
2018-07-27 12:57:25 -07:00
Gareth Jones
467f67094a
chore: removed the logFaces-UDP appender
2018-07-12 19:58:20 +10:00
Gareth Jones
3a565667f9
chore: removed logFaces-HTTP appender
2018-07-06 08:18:24 +10:00
Gareth Jones
06c56b4b07
chore: turned off unused locals complaint for types (caused by levels)
2018-07-06 08:10:06 +10:00
Gareth Jones
5618fdb4f8
Merge branch 'master' into version-3.x
2018-07-06 07:59:05 +10:00
Nico Jansen
18ad653044
fix(typings): correctly type the levels property
2018-07-04 18:16:41 +02:00
Gareth Jones
4d054505a8
chore: removed slack appender
2018-06-15 07:52:13 +10:00
Gareth Jones
d23f1af82b
chore: removed non-core appenders from types
2018-06-07 08:22:04 +10:00