-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use loglevel for recording logs #18425
Labels
Projects
Milestone
Comments
Please expose the logger instance to the console somehow so that e.g. I can turn them all back on via |
Palid
added a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Sep 21, 2021
This commit replaces all the `console.log` to `logger.log` via an automated script. Related: element-hq/element-web#18425
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 15, 2021
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 15, 2021
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 15, 2021
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 15, 2021
Palid
pushed a commit
that referenced
this issue
Oct 15, 2021
Palid
pushed a commit
that referenced
this issue
Oct 15, 2021
Palid
pushed a commit
that referenced
this issue
Oct 15, 2021
Waiting for review: |
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
that referenced
this issue
Oct 18, 2021
Palid
pushed a commit
that referenced
this issue
Oct 19, 2021
Palid
pushed a commit
that referenced
this issue
Oct 19, 2021
Palid
pushed a commit
that referenced
this issue
Oct 19, 2021
Palid
pushed a commit
that referenced
this issue
Oct 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Replace all
console.log
with https://github.com/pimterry/loglevel.debug
calls for readability and to make a first step towards better structured logging, so that we'll only see proper development informations in the console instead of an enormous flood of everything, yet rageshake will still work properly.Use below
jscodeshift
transform script:To run the command:
yarn add -D jscodeshift jscodeshift-add-imports
(npx doesn't work with those packages due to wrong paths)transform.js
in the root directory of the package'ssrc
you want to updatenode node_modules/.bin/jscodeshift --extensions=tsx,js,jsx --parser=tsx -t ./transform.js ./src/ && node node_modules/.bin/jscodeshift --extensions=ts --parser=ts -t ./transform.js ./src/
Optimizing the flow isn't really useful, as
tsx
parser has some issues with.ts
files. It takes a few seconds anyways.If you want to change the
console.info
intologger.info
just changeCONSOLE_METHOD_NAME
to something else, I don't think it can get much simpler. 😄The text was updated successfully, but these errors were encountered: