• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14module:
15  name: arkbase
16  # It is better to name this namespace simply "ark::base", but there is already namespace "ecmascript::base", which
17  # is used just as "base", hence it conflicts with this namespace. I fixed it by renaming base->ecmascript::base in
18  # this repository, but there is the external repository ark_js_runtime, which uses us as an external library and has
19  # the same problem with "ecmascript::base". So, I've gave up and renamed it to "base_options".
20  namespace: ark::base_options
21
22options:
23- name: log-level
24  type: std::string
25  default: error
26  possible_values:
27  - debug
28  - info
29  - warning
30  - error
31  - fatal
32  description: Log level
33
34- name: log-stream
35  type: std::string
36  default: std
37  possible_values:
38  - std
39  - file
40  - fast-file
41  - dummy
42  description: Log level
43
44- name: log-file
45  type: std::string
46  default: ""
47  description: File name for file-logger
48
49- name: log-components
50  type: arg_list_t
51  default:
52  - all
53  possible_values:
54  - all
55  - alloc
56  - mm-obj-events
57  - classlinker
58  - common
59  - core
60  - gc
61  - gc_trigger
62  - reference_processor
63  - interpreter
64  - compiler
65  - llvm
66  - pandafile
67  - memorypool
68  - runtime
69  - trace
70  - debugger
71  - interop
72  - jni
73  - verifier
74  - compilation_queue
75  - jvmti
76  - aot
77  - events
78  - ecmascript
79  - scheduler
80  - coroutines
81  - task_manager
82  description: Enable logs from specified components
83  delimiter: ":"
84
85- name: log-debug
86  type: arg_list_t
87  default:
88  - all
89  possible_values: $log-components
90  description: Enable debug or above logs from specified components
91  delimiter: ":"
92
93- name: log-info
94  type: arg_list_t
95  default:
96  - all
97  possible_values: $log-components
98  description: Enable info or above logs from specified components
99  delimiter: ":"
100
101- name: log-warning
102  type: arg_list_t
103  default:
104  - all
105  possible_values: $log-components
106  description: Enable warning or above logs from specified components
107  delimiter: ":"
108
109- name: log-error
110  type: arg_list_t
111  default:
112  - all
113  possible_values: $log-components
114  description: Enable error or above logs from specified components
115  delimiter: ":"
116
117- name: log-fatal
118  type: arg_list_t
119  default:
120  - all
121  possible_values: $log-components
122  description: Enable fatal logs from specified components
123  delimiter: ":"
124