/*----------------------------------------------------------------------------*/ /* liblog.h */ /*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/ /* This file is part of liblog. */ /* */ /* Drummer is free software: you can redistribute it and/or modify it */ /* under the terms of the GNU Lesser General Public License as published */ /* by the Free Software Foundation, either version 3 of the License, or */ /* (at your option) any later version. */ /* */ /* Drummer is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU Lesser General Public License for more details. */ /* */ /* You should have received a copy of the GNU Lesser General Public */ /* License along with Drummer. If not, see */ /* . */ /*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/ /* Includes */ /*----------------------------------------------------------------------------*/ #include #include #include /*----------------------------------------------------------------------------*/ /* Pre definitions */ /*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/ /* Definitions */ /*----------------------------------------------------------------------------*/ #define LGD_LOG_WRITER_DEFAULT LG_Log_Write #define LGD_MODULE_NAME "lg" /*----------------------------------------------------------------------------*/ /* LGT_Base */ /*----------------------------------------------------------------------------*/ LGT_Base LGG_Base = { NULL, { LGD_LOG_TYPE_NAME_UNKNOWN, LGD_LOG_TYPE_NAME_TRACE, LGD_LOG_TYPE_NAME_INFO, LGD_LOG_TYPE_NAME_WARNING, LGD_LOG_TYPE_NAME_ERROR} }; /*----------------------------------------------------------------------------*/ /* Private Prototypes */ /*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/ /* LG_Log_Header */ /*----------------------------------------------------------------------------*/ LGT_Status LG_Log_Header( LGT_Log_Type_Id, ...); /*----------------------------------------------------------------------------*/ /* LG_Log_Footer */ /*----------------------------------------------------------------------------*/ LGT_Status LG_Log_Footer( LGT_Log_Type_Id, ...); /*----------------------------------------------------------------------------*/ /* LG_Log_Format */ /*----------------------------------------------------------------------------*/ LGT_Status LG_Log_Format( char *, LGT_Log_Type_Id, LGT_Log_Level, char *, char *, long, bool, char *); /*----------------------------------------------------------------------------*/