58 Commits

Author SHA1 Message Date
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
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
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
Gareth Jones
803e53ff71 Merge branch 'master' into version-3.x 2018-06-04 08:03:21 +10:00
Robert Van Gorkom
a1e40c229e
Making Logger def a class instead of interface.
Doing this allows for typescript and angular to use the class as a dependency injection object.
2018-06-02 12:08:45 -07:00
Gareth Jones
a0749b5d01 chore: resolved conflicts manually 2018-05-30 08:26:32 +10:00
LongYinan
9a049d604e
fix(types): loose type restrict in Logger 2018-05-28 15:22:29 +08:00
Gareth Jones
cff7c54c1c
Merge pull request #704 from NeoyeElf/feature/maxFileSize
feat: Enable maxLogSize with unit
2018-05-18 07:47:59 +10:00
Peter Safranek
d39b5eb36b fix(#709): strict Log4js typings
* Strictly type the exported Log4js interface.
* Test the typings for strictness using the TypesScript compiler.
2018-05-12 19:26:56 -07:00
liuwenzhe
e4126b4d67 feat: Enable maxLogSize with unit 2018-05-04 11:53:09 +08:00
Gareth Jones
006fd90793 chore: remove mailgun appender 2018-04-20 07:36:35 +10:00
Gareth Jones
1a591edcfa chore: remove logstash udp 2018-03-08 08:09:32 +11:00
Gareth Jones
28af2158b6 chore: removed loggly from types 2018-02-27 07:14:48 +11:00
Gareth Jones
03a224da84 fix(types): remove gelf from types 2018-02-23 08:07:02 +11:00
Ilja Denisovs
fe07ab2e75 fix(types): Added return type for configure(...). 2018-02-15 11:49:44 +02:00