File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.1.6 (2019-12-2)
2
+
3
+ Improvement:
4
+
5
+ - Added support for NewRelic logging so errors can be sent there if needed
6
+
1
7
## 2.1.4 (2016-11-01)
2
8
3
9
Improvement:
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ The config object to be passed to each service has the following properties:
16
16
- LOGGING_TYPE (can be local|remote|none)
17
17
- local: log to local console only
18
18
- remote: log to local console and remote endpoint
19
+ - newrelic: forward onto the NewRelic error handler if there's one available
19
20
- none: perform no logging
20
21
- REMOTE_LOGGING_ENDPOINT: the full URL to the endpoint where log messages are sent via AJAX POST
21
22
- REMOTE_ERROR_REPORT_ENDPOINT: the full URL to the endpoint where user error reports will be sent via AJAX POST
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " app-logger-angular" ,
3
- "version" : " 2.1.5 " ,
3
+ "version" : " 2.1.6 " ,
4
4
"main" : " ./js/logging.js" ,
5
5
"description" : " Client side logging sent to the server" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ loggingModule.factory(
49
49
$log . error . apply ( $log , arguments ) ;
50
50
}
51
51
52
+ if ( LOGGING_CONFIG . LOGGING_TYPE === 'newrelic' && $window . NREUM && $window . NREUM . noticeError ) {
53
+ $window . NREUM . noticeError ( exception ) ;
54
+ }
55
+
52
56
// check if the config says we should log to the remote, and also if a remote endpoint was specified
53
57
if ( LOGGING_CONFIG . LOGGING_TYPE === 'remote' && LOGGING_CONFIG . REMOTE_LOGGING_ENDPOINT ) {
54
58
// now log server side.
You can’t perform that action at this time.
0 commit comments