Skip to content

Commit

Permalink
Log forwarding (#181)
Browse files Browse the repository at this point in the history
* feat: log forwarding functionality

Add static Methods for log messages and feature flag for log reporting enabled

* feat: log forwarding functionality

Add static Methods for log messages and feature flag for log reporting enabled

* feat: log Forwarding and ANR Reporting

* Update release-testing.yaml

* fix: fix the depedencies issue in 1.4.0

#180
  • Loading branch information
ndesai-newrelic authored Jul 26, 2024
1 parent 66ce666 commit 7f79b2b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 1.4.0
## 1.4.1
## New Features

1. Application Exit Information
Expand All @@ -16,6 +16,17 @@
- Native Android agent updated to version 7.5.0
- Native iOS agent updated to version 7.5.0

## 1.4.0

## Important Notice

This is an Unpublished Version

**Build Status**: Failed

We encountered issues during the build process for this version. As a result, it has not been published and is not available for general use.


## 1.3.9

* Updated the native Android agent to version 7.3.1.
Expand Down
3 changes: 1 addition & 2 deletions __mocks__/nrm-modular-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export default {
logVerbose: jest.fn(),
logDebug: jest.fn(),
logError: jest.fn(),
logWarning: jest.fn(),

logWarn: jest.fn(),
isAgentStarted: (name, callback) => {
callback(true);
},
Expand Down
20 changes: 9 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
* SPDX-License-Identifier: Apache-2.0
*/

import utils from 'newrelic-react-native-agent/new-relic/nr-utils';
import {LOG} from 'newrelic-react-native-agent/new-relic/nr-logger';
import {Platform} from 'react-native';
import NRMAModularAgentWrapper from 'newrelic-react-native-agent/new-relic/nrma-modular-agent-wrapper';
import version from 'newrelic-react-native-agent/new-relic/version';
import forEach from 'lodash.foreach';
import getCircularReplacer from 'newrelic-react-native-agent/new-relic/circular-replacer';

import utils from './new-relic/nr-utils';
import { LOG } from './new-relic/nr-logger';
import { Platform } from 'react-native';
import NRMAModularAgentWrapper from './new-relic/nrma-modular-agent-wrapper';
import version from './new-relic/version';
import getCircularReplacer from './new-relic/circular-replacer';
import {
getUnhandledPromiseRejectionTracker,
setUnhandledPromiseRejectionTracker,
} from 'newrelic-react-native-agent/node_modules/react-native-promise-rejection-utils'
getUnhandledPromiseRejectionTracker,
setUnhandledPromiseRejectionTracker,
} from 'react-native-promise-rejection-utils'


/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "newrelic-react-native-agent",
"version": "1.4.0",
"version": "1.4.1",
"description": "A New Relic Mobile Agent for React Native",
"main": "./index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 7f79b2b

Please sign in to comment.