16f2c2defSopenharmony_ci/*
26f2c2defSopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd.
36f2c2defSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
46f2c2defSopenharmony_ci * you may not use this file except in compliance with the License.
56f2c2defSopenharmony_ci * You may obtain a copy of the License at
66f2c2defSopenharmony_ci *
76f2c2defSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
86f2c2defSopenharmony_ci *
96f2c2defSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
106f2c2defSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
116f2c2defSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
126f2c2defSopenharmony_ci * See the License for the specific language governing permissions and
136f2c2defSopenharmony_ci * limitations under the License.
146f2c2defSopenharmony_ci */
156f2c2defSopenharmony_ci
166f2c2defSopenharmony_ci#include "ohos_init.h"
176f2c2defSopenharmony_ci#include "hiview_config.h"
186f2c2defSopenharmony_ci
196f2c2defSopenharmony_ciHiviewConfig g_hiviewConfig = {
206f2c2defSopenharmony_ci    .outputOption = OUTPUT_OPTION,
216f2c2defSopenharmony_ci    .level = OUTPUT_LEVEL,    /* Control log output level. HILOG_LV_XXX, default is HILOG_LV_DEBUG */
226f2c2defSopenharmony_ci    .logSwitch = HILOG_LITE_SWITCH,
236f2c2defSopenharmony_ci    .dumpSwitch = DUMP_LITE_SWITCH,
246f2c2defSopenharmony_ci    .eventSwitch = HIEVENT_LITE_SWITCH,
256f2c2defSopenharmony_ci    .logOutputModule = 0,
266f2c2defSopenharmony_ci    .writeFailureCount = 0,
276f2c2defSopenharmony_ci};
286f2c2defSopenharmony_ci
296f2c2defSopenharmony_cistatic void HiviewConfigInit(void)
306f2c2defSopenharmony_ci{
316f2c2defSopenharmony_ci    g_hiviewConfig.hiviewInited = FALSE;
326f2c2defSopenharmony_ci    g_hiviewConfig.logOutputModule = (uint64_t)LOG_OUTPUT_MODULE;
336f2c2defSopenharmony_ci    g_hiviewConfig.writeFailureCount = 0;
346f2c2defSopenharmony_ci}
356f2c2defSopenharmony_ciCORE_INIT_PRI(HiviewConfigInit, 0);
36