2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file ss_logger_store_logs.h
19 * @brief This file supports the logger service interface for SystemManager.
21 /** @addtogroup BaseSystem
24 /** @addtogroup system_service
28 /** @addtogroup interface_unified
29 * @ingroup system_service
32 #ifndef SS_LOGGER_STORE_LOGS_H_ // NOLINT (build/header_guard)
33 #define SS_LOGGER_STORE_LOGS_H_
35 #include <native_service/frameworkunified_types.h>
36 #include "system_service/interfaceunified_system_types.h"
45 #define SS_LOGGER_SAVE_INTERFACEUNIFIEDLOG_FLAG "/ramd/BS/ss/logger_service/rwdata/frameworkunifiedlog/SS_LOGGER_SAVE_INTERFACEUNIFIEDLOG_FLAG"
48 SS_STORELOGS_INTERFACEUNIFIEDLOG = 0,
50 SS_STORELOGS_ACCOFFON,
52 SS_STORELOGS_SYS_ILLEGAL,
53 SS_STORELOGS_ACCOFFON_PRESS,
56 } SS_STORELOGS_OPE_TYPE;
57 ///////////////////////////////////////////////////////////////////////////////
58 /// \ingroup logger_service
60 /// \brief SSLoggerSrvIfWriteDebugLogs
63 /// EFrameworkunifiedStatus - success or error
64 ///////////////////////////////////////////////////////////////////////////////
65 EFrameworkunifiedStatus SS_LoggerStoreLogs(SS_STORELOGS_OPE_TYPE type);
67 EFrameworkunifiedStatus SS_LoggerStoreLogs_deleteOldLogAbnrm(const std::string& log_path, std::vector<std::string>& l_vector,
68 const std::string& f_archive_destination, SI_32 max_num,
71 EFrameworkunifiedStatus StartRtUsbLogThread(HANDLE hApp);
72 EFrameworkunifiedStatus StopRtUsbLogThread(HANDLE hApp);
78 #endif /* SS_LOGGER_STORE_LOGS_H_ */ // NOLINT (build/header_guard)