1 2/** 3 * Copyright (c) 2022 Huawei Device Co., Ltd. 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17import hilog from '@ohos.hilog'; 18 19@Entry 20@Component 21struct Index { 22 aboutToAppear() { 23 hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); 24 hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility index aboutToAppear'); 25 } 26 27 @State message: string = 'TIME ETS TEST' 28 build() { 29 Row() { 30 Column() { 31 Text(this.message) 32 .fontSize(50) 33 .fontWeight(FontWeight.Bold) 34 } 35 .width('100%') 36 } 37 .height('100%') 38 } 39}