Skip to content

Commit

Permalink
docs: add language identifiers to codeblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhensley committed Jun 17, 2022
1 parent 531f4d1 commit 60a524f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You have three options to configure APM logs in context to send your app's logs

newrelic.js:

```
```js
application_logging: {
forwarding: {
enabled: true
Expand All @@ -72,7 +72,7 @@ You have three options to configure APM logs in context to send your app's logs

newrelic.js:

```
```js
application_logging: {
forwarding: {
max_samples_stored: 10000
Expand Down Expand Up @@ -103,7 +103,7 @@ You have three options to configure APM logs in context to send your app's logs

newrelic.js:

```
```js
application_logging: {
forwarding: {
enabled: false
Expand All @@ -115,7 +115,7 @@ You have three options to configure APM logs in context to send your app's logs

newrelic.js:

```
```js
application_logging: {
local_decorating: {
enabled: true
Expand Down Expand Up @@ -196,12 +196,12 @@ To enable logs in context for APM apps monitored by Node.js, you can use our man
>
1. To install the Winston log enricher, enter the following command into your terminal or command line interface:

```
```bash
npm install @newrelic/winston-enricher
```
2. In your application code, update your logging configuration to add the `newrelicFormatter`:

```
```js
// index.js
require('newrelic')
const winston = require('winston')
Expand All @@ -210,7 +210,7 @@ To enable logs in context for APM apps monitored by Node.js, you can use our man

The New Relic formatter can be used individually or combined with other formatters as the final format.

```
```js
format: winston.format.combine(
winston.format.label({label: 'test'}),
newrelicFormatter()
Expand All @@ -224,12 +224,12 @@ To enable logs in context for APM apps monitored by Node.js, you can use our man
>
1. To install the Pino log enricher, enter the following command into your terminal or command line interface:

```
```bash
npm install @newrelic/pino-enricher
```
2. In your application code, update your logging configuration to add the New Relic Pino plugin:

```
```js
// index.js
require('newrelic')
const nrPino = require('@newrelic/pino-enricher')
Expand Down

0 comments on commit 60a524f

Please sign in to comment.