overleaf/libraries/logger
Antoine Clausse 01188589f8 Add some JSDoc types to @overleaf/logger (#19153)
* Add some JSDoc types to `@overleaf/logger`

* Update `logger.error` calls

* Fixup `logger.err` JSDoc

* Update `logger.err` calls

* Fix `args` type

* Remove "Error message" description

* Replace `arguments` by actual arguments of the method

* Fix: "ESLint: Unnecessary '.apply()'.(no-useless-call)"

* Add JSDoc params to `debug` `info` `warn`

* Remove extra `args` param in JSDoc so developers aren't invited to use it

Not sure if this is the best thing to do because it creates a warning in the IDE: "Parameter args is not described in JSDoc"

* Add comment about serialization of `err` `req` `res`

* Allow strings as first param in `debug` `info` `warn`

* Fix syntax for optional parameters in JSDoc

* Add 2 signatures, to avoid "string, string" params

* Fix `@signature` names copy-pastes

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* Revert the double `@param attributes`. It doesn't work

---------

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
GitOrigin-RevId: 086dee8bbf30d577c5e1f844a9df5e518c46aca7
2024-06-28 08:04:25 +00:00
..
test Merge pull request #13781 from overleaf/em-fetch-utils-logger 2023-09-08 08:04:12 +00:00
.dockerignore Merge pull request #5724 from overleaf/jpa-lean-docker-build 2021-11-09 09:04:02 +00:00
.gitignore Merge pull request #14138 from overleaf/bg-em-jpa-mj-node-18 2023-08-03 08:03:56 +00:00
.mocharc.json Merge pull request #5488 from overleaf/em-refactor-logger 2021-10-28 08:04:00 +00:00
.nvmrc Merge pull request #17870 from overleaf/bg-node-upgrade-18-20-2 2024-04-24 08:05:16 +00:00
buildscript.txt Merge pull request #17870 from overleaf/bg-node-upgrade-18-20-2 2024-04-24 08:05:16 +00:00
CHANGELOG.md Merge pull request #6215 from overleaf/ae-logger-req-params 2022-02-17 09:03:29 +00:00
gcp-manager.js Merge pull request #14296 from overleaf/jpa-error-serializer 2023-08-25 08:04:36 +00:00
index.js add eslint and prettier 2019-03-08 12:06:24 -04:00
LICENSE.txt Bump to 1.8.0 and include license 2019-07-11 13:07:47 +01:00
log-level-checker.js Merge pull request #18856 from overleaf/jpa-server-ce-shutdown 2024-06-18 08:04:04 +00:00
logging-manager.js Add some JSDoc types to @overleaf/logger (#19153) 2024-06-28 08:04:25 +00:00
package.json Update protobufjs to 7.2.5 everywhere 2024-06-17 08:03:46 +00:00
sentry-manager.js Merge pull request #7339 from overleaf/em-sentry-info 2022-04-08 08:04:04 +00:00
serializers.js Merge pull request #9611 from overleaf/jpa-step-up-logging 2022-09-15 08:04:34 +00:00
tsconfig.json Merge pull request #18167 from overleaf/em-simpler-typescript-backend 2024-05-07 08:04:00 +00:00