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_service_local.h
19 * @brief \~english This file supports the the Logger Service.
21 /** @addtogroup BaseSystem
24 /** @addtogroup system_service
28 /** @addtogroup logger_service
29 * @ingroup system_service
32 #ifndef SS_LOGGER_SERVICE_LOCAL_H_ // NOLINT (build/header_guard)
33 #define SS_LOGGER_SERVICE_LOCAL_H_
35 ///////////////////////////////////////////////////////////////////////////////
36 /// \ingroup logger_service
37 /// \brief Screen Capture Event data
38 ///////////////////////////////////////////////////////////////////////////////
39 typedef struct _TInterfaceunifiedSetLoggerParams {
40 ELOGGER_STAT Logger_State;
41 EDEV_TYPE Device_Type;
44 typedef struct _TInterfaceunifiedSetLoggerAllParams {
45 ELOGGER_STAT Logger_State;
46 EDEV_TYPE Device_Type;
47 ELOGGER_STAT Logger_UDPState;
49 }STLoggerSetAllParams;
51 typedef struct _TErrorLogger_FolderInfo {
52 static const UI_16 STR_BUFF_LEN = 64;
53 CHAR FoldernameAndLogname[STR_BUFF_LEN];
54 CHAR StorageTarget[STR_BUFF_LEN];
57 ///////////////////////////////////////////////////////////////////////////////
58 /// \ingroup logger_service
59 /// \brief Event logger resets counter information
60 ///////////////////////////////////////////////////////////////////////////////
61 typedef union _uEvtLoggerCommonInfo {
62 STEventLoggerCommonInfo u_stEvtLoggerCommonInfo;
64 }UEvtLoggerCommonInfo;
67 ///////////////////////////////////////////////////////////////////////////////
68 /// \ingroup logger_service
69 /// \brief Logger Event information
70 ///////////////////////////////////////////////////////////////////////////////
71 typedef struct _stLogEventss_ {
79 /// Macros definition for the Event Logs
80 #define MAX_EVT_RECORDS 20000
81 #define MAX_EVENTLOG_SIZE 10*MAX_EVT_RECORDS ///< Max size for event logging
83 typedef struct _TInterfaceunifiedEventLogPersistBuffer {
84 static const UI_16 EVT_BUFMAXSIZE = MAX_EVT_RECORDS;
85 st_LogEvent_ss EvtLog_Buffer[EVT_BUFMAXSIZE];
86 UI_16 Current_Log_Size;
87 }STEventLogPersistBuffer;
89 #endif /* SS_LOGGER_SERVICE_LOCAL_H_ */ // NOLINT (build/header_guard)