This file is indexed.

/usr/include/gnuradio/swig/gr_logger.i is in gnuradio-dev 3.7.9.1-2ubuntu1.

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* -*- c++ -*- */
/*
 * Copyright 2012 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * GNU Radio is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3, or (at your option)
 * any later version.
 *
 * GNU Radio 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

/*******************************************************************************
* Copyright 2011 Johns Hopkins University Applied Physics Lab
* Author: Mark Plett
* Description:
*   SWIG interface generator file for gr_logger module.  gr_logger wraps log4cpp logging
*   for gnuradio.
*******************************************************************************/

%feature("autodoc", "1");		// generate python docstrings

%include "exception.i"
%import "gnuradio.i"			// the common stuff

%{
#include "gnuradio_swig_bug_workaround.h"	// mandatory bug fix
#include <stdexcept>
%}

//-----------------------------------

%{
// The .h files
#include <gnuradio/logger.h>
%}

%rename(logger) gr::logger;
%rename(logger_config) gr_logger_config;
%rename(logger_get_names) gr_logger_get_logger_names;
%rename(logger_reset_config) gr_logger_reset_config;

void gr_logger_config(const std::string config_filename,unsigned int watch_period = 0);
std::vector<std::string> gr_logger_get_logger_names(void);
void gr_logger_reset_config(void);

namespace gr {

//  void logger_config(const std::string config_filename, unsigned int watch_period = 0);
//  std::vector<std::string> logger_get_logger_names(void);
//  void logger_reset_config(void);

  class logger
  {
  public:
    logger(std::string logger_name);
    void set_level(std::string level){LOG_SET_LEVEL(d_logger,level);}
    void get_level(std::string &level){LOG_GET_LEVEL(d_logger,level);}
    void debug(std::string msg){LOG_DEBUG(d_logger,msg);};
    void info(std::string msg){LOG_INFO(d_logger,msg);};
    void notice(std::string msg){LOG_NOTICE(d_logger,msg);};
    void warn(std::string msg){LOG_WARN(d_logger,msg);};
    void error(std::string msg){LOG_ERROR(d_logger,msg);};
    void crit(std::string msg){LOG_CRIT(d_logger,msg);};
    void alert(std::string msg){LOG_ALERT(d_logger,msg);};
    void fatal(std::string msg){LOG_FATAL(d_logger,msg);};
    void emerg(std::string msg){LOG_EMERG(d_logger,msg);};
  void errorIF(bool cond,std::string msg){LOG_ERRORIF(d_logger,cond,msg);};
  void log_assert(bool cond,std::string msg){LOG_ASSERT(d_logger,cond,msg);};
  void add_console_appender(std::string target,std::string pattern);
  void add_file_appender(std::string filename,bool append,std::string pattern);
  void add_rollingfile_appender(std::string filename, size_t filesize,
                                int bkup_index, bool append, mode_t mode,
                                std::string pattern);
  };

} /* namespace gr */