This file is indexed.

/usr/include/libguytools1/log/toollog.h is in libguytools1-dev 1.1.1-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// ****************************************************************************
//  Project:        libguytools
// ****************************************************************************
//  Programmer:     Guy Voncken
//                  Police Grand-Ducale
//                  Service de Police Judiciaire
//                  Section Nouvelles Technologies
// ****************************************************************************
//  Module:         Log utility
// ****************************************************************************

#ifndef __LOG_H__
#define __LOG_H__

class t_Log
{
   public:
       typedef enum
       {
          Debug=0,
          Info,
          Error,

          Entries // must always be the last element in the list
       } t_Level;


     t_Log (const char* pFileName, APIRET &rc);
    ~t_Log (void);

     static bool IsInitialised (void);
     static void GetLibGuyToolsVersion   (const char **pVersion);

     static void vEntry   (t_Level Level, const char *pFileName, const char *pFunctionName, int LineNr, const char *pFormat, va_list pArguments);
     static void  Entry   (t_Level Level, const char *pFileName, const char *pFunctionName, int LineNr, const char *pFormat, ...) __attribute__ ((format (printf, 5, 6)));
     static void vEntryDebug             (const char *pFileName, const char *pFunctionName, int LineNr, const char *pFormat, va_list pArguments);
     static void vEntryInfo              (const char *pFileName, const char *pFunctionName, int LineNr, const char *pFormat, va_list pArguments);
     static void vEntryError             (const char *pFileName, const char *pFunctionName, int LineNr, const char *pFormat, va_list pArguments);

     #define LOG_DEBUG(...)  t_Log::Entry (t_Log::Debug, __FFL__, __VA_ARGS__);
     #define LOG_INFO(...)   t_Log::Entry (t_Log::Info , __FFL__, __VA_ARGS__);
     #define LOG_ERROR(...)  t_Log::Entry (t_Log::Error, __FFL__, __VA_ARGS__);

   // Possible error codes
   // --------------------
      static const APIRET TOOLLOG_ERROR_INITIALISED_TWICE = ERROR_BASE_TOOL_LOG + 1;
      static const APIRET TOOLLOG_ERROR_HOSTNAME_TOO_LONG = ERROR_BASE_TOOL_LOG + 2;
};

#endif