Skip to content

Commit 94ffffd

Browse files
Export DPCTLService_InitLogger and DPCTLService_FiniLogger
1 parent 67ea26e commit 94ffffd

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

libsyclinterface/include/dpctl_service.h

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,22 @@ DPCTL_C_EXTERN_C_BEGIN
4343
DPCTL_API
4444
__dpctl_give const char *DPCTLService_GetDPCPPVersion(void);
4545

46-
DPCTL_C_EXTERN_C_END
47-
46+
/*!
47+
* @brief Initialize logger if compiled to use logger, no-op otherwise.
48+
*
49+
* @param app_name C-string for application name reflected in the log.
50+
* @paral log_dir C-string for directory where log files are placed.
51+
* @ingroup Service
52+
*/
53+
DPCTL_API
4854
void DPCTLService_InitLogger(const char *app_name, const char *log_dir);
4955

56+
/*!
57+
* @brief Finilize logger if enabled, no-op otherwise.
58+
*
59+
* @ingroup Service
60+
*/
61+
DPCTL_API
5062
void DPCTLService_ShutdownLogger(void);
63+
64+
DPCTL_C_EXTERN_C_END

0 commit comments

Comments
 (0)