Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

feat: make logpoint function customizable#634

Merged
JustinBeckwith merged 2 commits intogoogleapis:masterfrom
ofrobots:fix-458
Feb 15, 2019
Merged

feat: make logpoint function customizable#634
JustinBeckwith merged 2 commits intogoogleapis:masterfrom
ofrobots:fix-458

Conversation

@ofrobots
Copy link
Copy Markdown
Contributor

By default we use console.log for printing logpoint messages. This PR
adds a config option to allow users to customize the log function. This
can be useful in situations where the logs are being sent to 3rd parties
or need post-processing.

Fixes: #458

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 13, 2019
@ofrobots ofrobots added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 13, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 13, 2019
@ofrobots
Copy link
Copy Markdown
Contributor Author

This is blocked on #635 landing.

@ofrobots ofrobots force-pushed the fix-458 branch 2 times, most recently from 59ac3f9 to 4e6d9fd Compare February 14, 2019 23:02
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 14, 2019

Codecov Report

Merging #634 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #634   +/-   ##
=======================================
  Coverage   92.91%   92.91%           
=======================================
  Files          38       38           
  Lines        3544     3544           
  Branches      105      105           
=======================================
  Hits         3293     3293           
  Misses        228      228           
  Partials       23       23
Impacted Files Coverage Δ
src/agent/config.ts 100% <ø> (ø) ⬆️
src/agent/debuglet.ts 84.09% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a9ea83...4e6d9fd. Read the comment docs.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 14, 2019

Codecov Report

Merging #634 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #634      +/-   ##
==========================================
+ Coverage   92.89%   92.89%   +<.01%     
==========================================
  Files          38       38              
  Lines        3545     3546       +1     
  Branches      105      105              
==========================================
+ Hits         3293     3294       +1     
  Misses        229      229              
  Partials       23       23
Impacted Files Coverage Δ
src/agent/config.ts 100% <ø> (ø) ⬆️
src/agent/debuglet.ts 84.09% <0%> (ø) ⬆️
test/test-controller.ts 100% <0%> (ø) ⬆️
test/auth-request.ts 83.33% <0%> (+3.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3063973...fbc005e. Read the comment docs.

By default we use console.log for printing logpoint messages. This PR
adds a config option to allow users to customize the log function. This
can be useful in situations where the logs are being sent to 3rd parties
or need post-processing.

Fixes: googleapis#458
@JustinBeckwith JustinBeckwith merged commit 1bbfb64 into googleapis:master Feb 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants