Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: winstonjs/winston
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fba37b44f7875ba7c460df81fad27d6a941ed213
Choose a base ref
...
head repository: winstonjs/winston
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b47d5d5def8ef00603f864bfcfbe643ab9ef2ce0
Choose a head ref
Loading
Showing with 18,184 additions and 6,734 deletions.
  1. +3 −0 .babelrc
  2. +7 −0 .eslintrc
  3. +1 −0 .gitattributes
  4. +63 −0 .github/ISSUE_TEMPLATE.md
  5. +12 −1 .gitignore
  6. +0 −54 .jshintrc
  7. +8 −10 .npmignore
  8. +8 −8 .travis.yml
  9. +342 −0 CHANGELOG.md
  10. +74 −0 CODE_OF_CONDUCT.md
  11. +126 −0 CONTRIBUTING.md
  12. +969 −582 README.md
  13. +287 −0 UPGRADE-3.0.md
  14. +29 −0 appveyor.yml
  15. +97 −0 docs/releases.md
  16. +694 −343 docs/transports.md
  17. +10 −8 examples/color-message.js
  18. +0 −18 examples/couchdb.js
  19. +8 −7 examples/create-file.js
  20. +45 −0 examples/custom-levels-colors.js
  21. +20 −33 examples/custom-levels.js
  22. +10 −9 examples/custom-pretty-print.js
  23. +26 −0 examples/custom-timestamp.js
  24. +43 −0 examples/custom-transport.js
  25. +24 −0 examples/delete-level.js
  26. +20 −0 examples/errors.js
  27. +15 −2 examples/exception.js
  28. +26 −0 examples/file-maxsize.js
  29. +28 −0 examples/finish-event.js
  30. +16 −0 examples/format-dynamic-content.js
  31. +28 −0 examples/format-filter.js
  32. +27 −0 examples/format-logger-and-transport.js
  33. +45 −0 examples/format-mutate.js
  34. +28 −10 examples/interpolation.js
  35. +15 −0 examples/json.js
  36. +25 −0 examples/levels.js
  37. +23 −0 examples/metadata.js
  38. +99 −0 examples/quick-start.js
  39. +0 −10 examples/raw-mode.js
  40. +7 −2 examples/regular-expressions.js
  41. +0 −21 examples/silly-levels.js
  42. +25 −0 examples/simple-stream.js
  43. +28 −0 examples/splat-message.js
  44. +86 −0 examples/splat.js
  45. +193 −0 index.d.ts
  46. +150 −132 lib/winston.js
  47. +48 −482 lib/winston/common.js
  48. +0 −68 lib/winston/config.js
  49. +0 −35 lib/winston/config/cli-config.js
  50. +98 −0 lib/winston/config/index.d.ts
  51. +35 −0 lib/winston/config/index.js
  52. +0 −27 lib/winston/config/npm-config.js
  53. +0 −31 lib/winston/config/syslog-config.js
  54. +92 −106 lib/winston/container.js
  55. +104 −0 lib/winston/create-logger.js
  56. +245 −0 lib/winston/exception-handler.js
  57. +54 −0 lib/winston/exception-stream.js
  58. +0 −56 lib/winston/exception.js
  59. +602 −664 lib/winston/logger.js
  60. +51 −0 lib/winston/profiler.js
  61. +251 −0 lib/winston/rejection-handler.js
  62. +124 −0 lib/winston/tail-file.js
  63. +0 −36 lib/winston/transports.js
  64. +99 −112 lib/winston/transports/console.js
  65. +601 −590 lib/winston/transports/file.js
  66. +172 −210 lib/winston/transports/http.js
  67. +100 −0 lib/winston/transports/index.d.ts
  68. +56 −0 lib/winston/transports/index.js
  69. +0 −89 lib/winston/transports/memory.js
  70. +63 −0 lib/winston/transports/stream.js
  71. +0 −135 lib/winston/transports/transport.js
  72. +7,657 −0 package-lock.json
  73. +47 −16 package.json
  74. +0 −52 test/cli-test.js
  75. +0 −43 test/colorize-test.js
  76. +21 −0 test/config.test.js
  77. +0 −99 test/container-test.js
  78. +69 −0 test/container.test.js
  79. +0 −73 test/custom-formatter-test.js
  80. +0 −39 test/custom-pretty-print-test.js
  81. +0 −62 test/custom-timestamp-test.js
  82. +116 −0 test/exception-handler.test.js
  83. +34 −0 test/exception-stream.test.js
  84. +0 −47 test/exception-test.js
  85. 0 test/fixtures/file/simple-stream.log
  86. +0 −16 test/fixtures/scripts/colorize.js
  87. +267 −0 test/formats/errors.test.js
  88. +0 −256 test/helpers.js
  89. +304 −0 test/helpers/index.js
  90. +52 −0 test/helpers/mocks/legacy-mixed-transport.js
  91. +55 −0 test/helpers/mocks/legacy-transport.js
  92. +22 −0 test/helpers/mocks/mock-transport.js
  93. +23 −0 test/helpers/scripts/colorize.js
  94. +7 −5 test/{fixtures → helpers}/scripts/default-exceptions.js
  95. +30 −0 test/helpers/scripts/default-rejections.js
  96. +4 −3 test/{fixtures → helpers}/scripts/exit-on-error.js
  97. +6 −6 test/{fixtures → helpers}/scripts/log-exceptions.js
  98. +32 −0 test/helpers/scripts/log-rejections.js
  99. +5 −5 test/{fixtures → helpers}/scripts/log-string-exception.js
  100. +9 −8 test/{fixtures → helpers}/scripts/unhandle-exceptions.js
  101. +27 −0 test/helpers/scripts/unhandle-rejections.js
  102. +0 −40 test/humanReadableUnhandledException-test.js
  103. +41 −0 test/integration/formats.test.js
  104. +0 −65 test/log-exception-test.js
  105. +93 −0 test/log-exception.test.js
  106. +0 −107 test/log-filter-test.js
  107. +0 −99 test/log-rewriter-test.js
  108. +117 −0 test/logger-legacy.test.js
  109. +0 −143 test/logger-levels-test.js
  110. +0 −480 test/logger-test.js
  111. +1,081 −0 test/logger.test.js
  112. +39 −0 test/profiler.test.js
  113. +116 −0 test/rejection-handler.test.js
  114. +0 −27 test/stress/http-server.js
  115. +87 −0 test/tail-file.test.js
  116. +153 −0 test/transports/00-file-stress.test.js
  117. +121 −0 test/transports/01-file-maxsize.test.js
  118. +0 −202 test/transports/console-test.js
  119. +188 −0 test/transports/console.test.js
  120. +118 −0 test/transports/error.test.js
  121. +0 −83 test/transports/file-archive-test.js
  122. +93 −0 test/transports/file-archive.test.js
  123. +43 −0 test/transports/file-create-dir-test.js
  124. +0 −3 test/transports/file-maxfiles-test.js
  125. +0 −82 test/transports/file-maxsize-test.js
  126. +0 −57 test/transports/file-open-test.js
  127. +0 −72 test/transports/file-stress-test.js
  128. +0 −92 test/transports/file-tailrolling-test.js
  129. +93 −0 test/transports/file-tailrolling.test.js
  130. +0 −134 test/transports/file-test.js
  131. +122 −0 test/transports/file.test.js
  132. +0 −70 test/transports/http-test.js
  133. +77 −0 test/transports/http.test.js
  134. +0 −31 test/transports/memory-test.js
  135. +48 −0 test/transports/stream.test.js
  136. +0 −212 test/transports/transport.js
  137. +27 −0 test/tsconfig.json
  138. +59 −0 test/typescript-definitions.ts
  139. +0 −114 test/winston-test.js
  140. +71 −0 test/winston.test.js
  141. +25 −0 tsconfig.json
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "populist",
"rules": {
"one-var": ["error", { var: "never", let: "never", const: "never" }],
"strict": 0
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json binary
63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!--
✋📓❓ **NOTE:** for support questions, please use StackOverflow. This
repository's issues are reserved for feature requests and bug reports.
-->

### Please tell us about your environment:

- _`winston` version?_
- [ ] `winston@2`
- [ ] `winston@3`
- _`node -v` outputs:_
- _Operating System?_ (Windows, macOS, or Linux)
- _Language?_ (all | TypeScript X.X | ES6/7 | ES5 | Dart)

### What is the problem?
<!--
Please describe how to reproduce the problem including a minimum working
code example.
-->

### What do you expect to happen instead?
<!--
Please explain how you would expect your code to function.
-->

### Other information
<!--
e.g. stacktraces, related Github issues, suggestions on how to fix,
links for us to have more context (e.g. stackoverflow, gitter, etc).
If nothing please remove this section.
-->

<!--
Thank you for contributing to winston! Please review this checklist
before submitting your issue.
- Please ensure that your new issue conforms to our contribution guidelines:
https://github.com/winstonjs/winston/blob/master/CONTRIBUTING.md
- Participation in this open source project is subject to the our CoC
https://github.com/winstonjs/winston/blob/master/CODE_OF_CONDUCT.md
- For feature requests, delete the above and uncomment the section following
this one. But first, review the existing feature requests and make sure
there isn't one that already describes the feature you'd like to see added:
https://github.com/winstonjs/winston/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22
-->

<!--
### What's the feature?
If this is a NEW feature request please include a description of the feature,
a short code sample of the API, and the motivation / use case for changing
the behavior?
### What problem is the feature intended to solve?
### Is the absence of this feature blocking you or your team? If so, how?
### Is this feature similar to an existing feature in another tool?
### Is this a feature you're prepared to implement, with support from us?
-->
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
test/*.log
test/fixtures/*.json
test/fixtures/file/*.log*
test/fixtures/logs/*.log*
node_modules/
node_modules/*
npm-debug.log
npm-debug.log
coverage/
coverage/*
.nyc_output/
.nyc_output/*
*.log
.idea
*.sw*
yarn.lock
*.tgz
dist/
54 changes: 0 additions & 54 deletions .jshintrc

This file was deleted.

18 changes: 8 additions & 10 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
.nyc_output/
coverage/
docs
examples/
scratch/
test/
.*
*.log
test
test/*
!test/helpers.js
!test/transports/transport.js
node_modules/
node_modules/*
*.md
examples
examples/*
docs
docs/*
appveyor.yml
tsconfig.json
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "4.6"
- "6.9"
- "10"
- "12"
- "14"

before_install:
- travis_retry npm install
- travis_retry npm install typescript

script:
- npm test
- ./node_modules/.bin/tsc --version ; ./node_modules/.bin/tsc -p test

matrix:
allow_failures:
- node_js: "0.10"
- node_js: "0.12"
#matrix:
# allow_failures:
# - node_js: "14"

notifications:
email:
Loading