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
Hanson Wang
b21ed52519
Remove setLevel from Logger TypeScript definition
...
Logger no longer has a `setLevel` method.
2017-10-24 20:28:20 -07:00
Gareth Jones
8ab3f019d7
fix(docs): changing the github urls, because we're in an org now
2017-10-25 10:14:44 +11:00
Gareth Jones
9a9cd5f7b4
fix(types): bumped streamroller version, fixed types
2017-10-24 08:18:50 +11:00
Peter Safranek
2f74bc6430
Add return types for addLayout() and shutdown() functions.
...
Missing return types on functions causes the compiler to fail
when using the `strict` or `noImplicitAny` TypeScript flags.
2017-10-16 09:50:27 -07:00
Finn Glöe
b6018e2876
added missing CustomAppender
2017-10-16 12:38:16 +02:00
taoqf
08f6a1daa8
fix: add levels to typedefinition
2017-10-16 17:32:38 +08:00
taoqf
02c6ebbb2d
fix: add typescript definition
2017-10-16 13:43:41 +08:00
taoqf
589c9d3269
fix: add type defination
2017-10-12 15:27:09 +08:00