@@ -4,7 +4,7 @@ import "zone.js/dist/zone-node"
4
4
5
5
import 'reflect-metadata' ;
6
6
import './polyfills/array' ;
7
- import { isPresent , Type } from '@angular/core/src/facade/lang' ;
7
+ import { isPresent , Type , print } from '@angular/core/src/facade/lang' ;
8
8
import { ReflectiveInjector , reflector , coreLoadAndBootstrap , createPlatform ,
9
9
getPlatform , assertPlatform , ComponentRef , PlatformRef , PLATFORM_DIRECTIVES , PLATFORM_PIPES } from '@angular/core' ;
10
10
import { bind , provide , Provider } from '@angular/core/src/di' ;
@@ -38,6 +38,13 @@ export interface AppOptions {
38
38
startPageActionBarHidden ?: boolean ;
39
39
}
40
40
41
+ class ConsoleLogger {
42
+ log = print ;
43
+ logError = print ;
44
+ logGroup = print ;
45
+ logGroupEnd ( ) { }
46
+ }
47
+
41
48
export function bootstrap ( appComponentType : any ,
42
49
customProviders : ProviderArray = null ) : Promise < ComponentRef > {
43
50
NativeScriptDomAdapter . makeCurrent ( ) ;
@@ -52,7 +59,9 @@ export function bootstrap(appComponentType: any,
52
59
provide ( PLATFORM_PIPES , { useValue : COMMON_PIPES , multi : true } ) ,
53
60
provide ( PLATFORM_DIRECTIVES , { useValue : COMMON_DIRECTIVES , multi : true } ) ,
54
61
provide ( PLATFORM_DIRECTIVES , { useValue : NS_DIRECTIVES , multi : true } ) ,
55
- provide ( ExceptionHandler , { useFactory : ( ) => new ExceptionHandler ( null , true ) , deps : [ ] } ) ,
62
+ provide ( ExceptionHandler , { useFactory : ( ) => {
63
+ return new ExceptionHandler ( new ConsoleLogger ( ) , true )
64
+ } , deps : [ ] } ) ,
56
65
57
66
defaultPageProvider ,
58
67
defaultDeviceProvider ,
0 commit comments