@@ -56,14 +56,14 @@ export function executeLifeCycleMethod(context: any, schema: IPublicTypeNodeSche
5656 }
5757
5858 if ( typeof fn !== 'function' ) {
59- console . error ( `生命周期${ method } 类型不符` , fn ) ;
59+ logger . error ( `生命周期${ method } 类型不符` , fn ) ;
6060 return ;
6161 }
6262
6363 try {
6464 return fn . apply ( context , args ) ;
6565 } catch ( e ) {
66- console . error ( `[${ schema . componentName } ]生命周期${ method } 出错` , e ) ;
66+ logger . error ( `[${ schema . componentName } ]生命周期${ method } 出错` , e ) ;
6767 }
6868}
6969
@@ -208,7 +208,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
208208
209209 async componentDidCatch ( ...args : any [ ] ) {
210210 this . __executeLifeCycleMethod ( 'componentDidCatch' , args ) ;
211- console . warn ( args ) ;
211+ logger . warn ( args ) ;
212212 }
213213
214214 reloadDataSource = ( ) => new Promise ( ( resolve , reject ) => {
@@ -278,7 +278,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
278278 value = this . __parseExpression ( value , this ) ;
279279 }
280280 if ( typeof value !== 'function' ) {
281- console . error ( `custom method ${ key } can not be parsed to a valid function` , value ) ;
281+ logger . error ( `custom method ${ key } can not be parsed to a valid function` , value ) ;
282282 return ;
283283 }
284284 this [ key ] = value . bind ( this ) ;
@@ -369,7 +369,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
369369 this . setLocale = ( loc : string ) => {
370370 const setLocaleFn = this . appHelper ?. utils ?. i18n ?. setLocale ;
371371 if ( ! setLocaleFn || typeof setLocaleFn !== 'function' ) {
372- console . warn ( 'initI18nAPIs Failed, i18n only works when appHelper.utils.i18n.setLocale() exists' ) ;
372+ logger . warn ( 'initI18nAPIs Failed, i18n only works when appHelper.utils.i18n.setLocale() exists' ) ;
373373 return undefined ;
374374 }
375375 return setLocaleFn ( loc ) ;
@@ -527,7 +527,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
527527 : { } ;
528528
529529 if ( ! Comp ) {
530- console . error ( `${ schema . componentName } component is not found in components list! component list is:` , components || this . props . __container ?. components ) ;
530+ logger . error ( `${ schema . componentName } component is not found in components list! component list is:` , components || this . props . __container ?. components ) ;
531531 return engine . createElement (
532532 engine . getNotFoundComponent ( ) ,
533533 {
@@ -749,7 +749,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
749749
750750 __createLoopVirtualDom = ( schema : IPublicTypeNodeSchema , scope : any , parentInfo : INodeInfo , idx : number | string ) => {
751751 if ( isFileSchema ( schema ) ) {
752- console . warn ( 'file type not support Loop' ) ;
752+ logger . warn ( 'file type not support Loop' ) ;
753753 return null ;
754754 }
755755 if ( ! Array . isArray ( schema . loop ) ) {
0 commit comments