• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2020 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @syscap SystemCapability.ArkUI.ArkUI.Full
18 * @since 3
19 */
20export declare class console {
21  /**
22   * Prints "debug" logs.
23   *
24   * @param { string } message - Text to print.
25   * @param { any[] } arguments
26   * @syscap SystemCapability.ArkUI.ArkUI.Full
27   * @since 3
28   */
29  static debug(message: string, ...arguments: any[]): void;
30
31  /**
32   * Prints "log" logs.
33   *
34   * @param { string } message - Text to print.
35   * @param { any[] } arguments
36   * @syscap SystemCapability.ArkUI.ArkUI.Full
37   * @since 3
38   */
39  static log(message: string, ...arguments: any[]): void;
40
41  /**
42   * Prints "info" logs.
43   *
44   * @param { string } message - Text to print.
45   * @param { any[] } arguments
46   * @syscap SystemCapability.ArkUI.ArkUI.Full
47   * @since 3
48   */
49  static info(message: string, ...arguments: any[]): void;
50
51  /**
52   * Prints "warn" logs.
53   *
54   * @param { string } message - Text to print.
55   * @param { any[] } arguments
56   * @syscap SystemCapability.ArkUI.ArkUI.Full
57   * @since 3
58   */
59  static warn(message: string, ...arguments: any[]): void;
60
61  /**
62   * Prints "error" logs.
63   *
64   * @param { string } message - Text to print.
65   * @param { any[] } arguments
66   * @syscap SystemCapability.ArkUI.ArkUI.Full
67   * @since 3
68   */
69  static error(message: string, ...arguments: any[]): void;
70}
71