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
Gareth Jones
e4611e1188
Merge pull request #841 from log4js-node/streamroller-1.0.3
...
fix: updated streamroller dep to fix bug
2019-02-28 08:17:30 +11:00
Gareth Jones
a406ed80aa
chore: change for updated husky
2019-02-28 08:00:41 +11:00
Gareth Jones
0410f786a6
fix: merged package-lock
2019-02-28 07:59:22 +11:00
Gareth Jones
675dfd9642
Merge pull request #840 from martinheidegger/update-dependencies
...
Updating dependencies (including eslint)
2019-02-21 09:43:15 +11:00
Gareth Jones
4d3fb3234d
fix: updated streamroller dep to fix bug
2019-02-21 09:29:47 +11:00
Martin Heidegger
a06e2cc83c
chore: updated dependencies (including eslint)
2019-02-20 23:07:23 +09:00
Gareth Jones
8221adac2d
4.0.2
v4.0.2
2019-02-04 08:44:13 +11:00
Gareth Jones
8757ecd0b1
Merge pull request #831 from log4js-node/improve-connect-logger-coverage
...
Improve connect logger coverage
2019-02-04 08:43:37 +11:00
Gareth Jones
6741c0bdce
chore: improve coverage for connect middleware
2019-02-04 08:30:35 +11:00
Gareth Jones
054207359d
chore: improved connect-logger test coverage
2019-01-31 08:48:09 +11:00
Gareth Jones
24c3c4d43f
4.0.1
v4.0.1
2019-01-29 09:28:59 +11:00
Gareth Jones
a26a1ea482
Merge pull request #830 from log4js-node/fix-level-override
...
fix : #827 - level overrides
2019-01-29 09:27:53 +11:00
Gareth Jones
d8415fd11b
fix : #827 - level overrides
2019-01-29 09:17:03 +11:00
Gareth Jones
1554503985
4.0.0
v4.0.0
2019-01-25 08:24:02 +11:00
Gareth Jones
615492d09f
docs: mention that file and dateFile are the same now
2019-01-25 08:22:02 +11:00
Gareth Jones
19a79939f2
Merge branch 'LoneRifle-flatted'
2019-01-25 07:58:33 +11:00
Gareth Jones
26e941892e
Merge branch 'flatted' of https://github.com/LoneRifle/log4js-node into LoneRifle-flatted
2019-01-25 07:57:50 +11:00
Gareth Jones
d9b92cc145
Merge pull request #826 from log4js-node/update-streamroller
...
Update streamroller
2019-01-24 08:53:42 +11:00
Gareth Jones
dca0e8e591
fix: got package-lock.json back in sync
2019-01-24 08:43:15 +11:00
Gareth Jones
09c02e0b39
fix: all tests passing now with updated streamroller
2019-01-24 08:33:15 +11:00
Gareth Jones
ee81a50844
chore: work in progress commit as backup
2019-01-05 16:14:46 +11:00
Gareth Jones
2f738eb5c3
Merge pull request #819 from blakambr/master
...
Feature - Add status code rulesets for connectLogger
2018-12-20 08:06:45 +11: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
Gareth Jones
d0915bf9e2
Merge pull request #815 from mattiacapitanio/noLogFilter
...
FeatureRequest: nolog in general config #640
2018-12-03 07:33:01 +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
f7eee87955
Merge pull request #807 from jiro4989/hotfix/fix_example_code
...
[fix]change wrong property name, from 'numBackups' to 'backups'
2018-11-14 11:22:32 +11:00
jiro4989
149c102fda
[fix]change wrong property name, from 'numBackups' to 'backups'
2018-11-14 07:41:23 +09:00
LoneRifle
29c92211f2
fix( #789 ): use flatted in place of CircularJSON
...
CircularJSON is now deprecated, so replace it with its successor
and use it in the sole location where we used CircularJSON, ie
in the LoggingEvent serialization/deserialization functions
* npm - install flatted, remove circular-json
* LoggingEvent - use flatted for serialization/deserialization
* tests - acknowledge that flatted (and circular-json) should not
parse anything other than their respective serialized payloads
and use flatted when parsing/stringifying test data
2018-11-04 15:32:28 +08:00
Gareth Jones
86333dc57d
3.0.6
v3.0.6
2018-10-09 08:01:28 +11:00
Gareth Jones
0700d6a94e
Merge pull request #794 from so5/multiFile
...
fix : #793
2018-10-09 07:27:43 +11:00
Naoyuki Sogo
f066f19a2c
test: multiFile appenders' shutdown called before use
2018-10-02 09:24:54 +09:00
Gareth Jones
bd7097a8a4
Merge pull request #780 from t4d-io-website/master
...
fix require.main for use with Node.js mjs modules
2018-10-02 07:38:17 +10:00
Gareth Jones
51084d739e
Merge pull request #790 from LoneRifle/master
...
refactor(multiprocess): serialisation consistency
2018-10-02 07:30:56 +10:00
Naoyuki Sogo
2a336d9a5d
fix : #793
2018-09-28 15:28:29 +09:00
LoneRifle
7f248c4177
refactor(multiprocess): serialisation consistency
...
Delegate all serialisation tasks to LoggingEvent, instead of
maintaining a separate codepath in the multiprocess appender
2018-09-25 23:32:30 +08:00
Eric Greene
7e008c8d44
fix require.main for use with Node.js mjs modules
2018-08-16 22:25:02 -04:00
Gareth Jones
85ae8813d8
Merge pull request #779 from log4js-node/fix-type-for-shutdown
...
fix(#687 ): shutdown callback arg is not optional
2018-08-14 08:50:28 +10:00
Gareth Jones
8e4bfb5310
fix( #687 ): shutdown callback arg is not optional
2018-08-14 07:38:03 +10:00
Gareth Jones
4d81c5a5d0
chore: fix for #729
2018-08-13 08:12:09 +10:00
Gareth Jones
61cc681836
3.0.5
v3.0.5
2018-08-13 08:03:26 +10:00
Gareth Jones
a686c275dd
chore: removed a lint warning
2018-08-13 08:00:59 +10:00
Gareth Jones
974bd7ed7e
Merge pull request #776 from victor0801x/freezeconfig
...
fix : #743 and pr #766 cause other issues
2018-08-13 07:47:52 +10:00
Jimmy Hunag
461370ced6
fix : #743 use deepclone
2018-08-11 03:26:50 +08:00
Gareth Jones
e59244e723
Merge pull request #771 from bertho-zero/patch-1
...
Change for good cheese
2018-08-03 12:46:36 +10:00
Kévin Berthommier
50bce3554d
Change for good cheese
2018-08-02 12:44:59 +02:00
Gareth Jones
9120b77b49
3.0.4
v3.0.4
2018-08-02 08:10:54 +10:00
Gareth Jones
1d6c0a3ae8
Merge pull request #770 from log4js-node/config-level-serialisation
...
fix(#768 ): allow config to use level objects
2018-08-02 08:10:20 +10:00
Gareth Jones
82760865fd
fix( #768 ): allow config to use level objects
2018-08-02 08:03:22 +10:00