diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index 5303540869675aeffb9d17d69f3ac4cfb9e622cf..27aa0b17c6485e2f8784f7d27ed292ec6313eb61 100644 --- a/entry/src/main/ets/entryability/EntryAbility.ets +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -83,9 +83,10 @@ export default class EntryAbility extends UIAbility { let windowClass: window.Window = windowStage.getMainWindowSync(); let isLayoutFullScreen = true; windowClass.setWindowLayoutFullScreen(isLayoutFullScreen).then(() => { - console.info('Succeeded in setting the window layout to full-screen mode.'); + hilog.info(0x0000, 'testTag', 'Succeeded in setting the window layout to full-screen mode.'); }).catch((err: BusinessError) => { - console.error('Failed to set the window layout to full-screen mode. Cause:' + JSON.stringify(err)); + hilog.error(0x0000, 'testTag', + 'Failed to set the window layout to full-screen mode. Cause:' + JSON.stringify(err)); }); }); let windowClass: window.Window | undefined = undefined;