Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions services/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,8 @@ Handlebars will attempt to escape the http:`//` which causes issues. So when usi

## Logging

`@bedrockio/logger` provides structured logging in the console and both [logging](https://cloud.google.com/logging/) and
[tracing](https://cloud.google.com/trace) in Google Cloud environments. Importing it will by default enable tracing in a
GCP environment.
`@bedrockio/logger` provides structured logging in the console and [logging](https://cloud.google.com/logging/) in
Google Cloud environments, where logs are grouped by request using the `traceparent` or `X-Cloud-Trace-Context` headers.

In Google Cloud environments generally the server and jobs (`jobs/`) should use the above initialization to allow
structured error reporting in the cloud console. Development environments and scripts (`scripts/`) meant to be run in a
Expand All @@ -288,7 +287,7 @@ The logger allows multiple log levels:
logger.trace('Very verbose message.');
logger.debug('Less verbose message.');
logger.info('Normal message.');
logger.warning('Warning message.');
logger.warn('Warning message.');
logger.error('Error message.');
```

Expand Down
2 changes: 1 addition & 1 deletion services/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@bedrockio/chrono": "^0.12.3",
"@bedrockio/config": "^3.0.0",
"@bedrockio/fixtures": "^1.4.5",
"@bedrockio/logger": "^1.1.3",
"@bedrockio/logger": "^2.0.0",
"@bedrockio/model": "0.24.2",
"@bedrockio/templates": "^0.3.3",
"@bedrockio/yada": "^1.11.2",
Expand Down
13 changes: 11 additions & 2 deletions services/api/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/web/serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"dependencies": {
"@bedrockio/config": "^2.2.3",
"@bedrockio/logger": "^1.1.3",
"@bedrockio/logger": "^2.0.0",
"koa": "^2.16.0",
"koa-basic-auth": "^4.0.0",
"koa-mount": "^4.0.0",
Expand Down
Loading
Loading