diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-06-07 09:36:26 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-06-07 12:44:52 -0400 |
commit | 7cfe8af854348924d31aa1feb5978da6dd1fe1c4 (patch) | |
tree | 97191856f13febd0b31df5fa8808018537ce854b /gnuradio-core/src/lib/runtime/gr_log.cc | |
parent | b40ccb1d3f12a6837df235ccbceee5180c711efa (diff) |
core: Adds a gr-log concept for easy logging at various levels.
Uses log4cxx and is optional. Macro based and macros are simple pass-throughs
if this dependency does not exist or if the gr-log is disabled.
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_log.cc')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_log.cc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_log.cc b/gnuradio-core/src/lib/runtime/gr_log.cc new file mode 100644 index 0000000000..5478bd70c0 --- /dev/null +++ b/gnuradio-core/src/lib/runtime/gr_log.cc @@ -0,0 +1,41 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004 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 GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +/* + * config.h is generated by configure. It contains the results + * of probing for features, options etc. It should be the first + * file included in your .cc file. + */ + +/************************************************ +* Johns Hopkins University Applied Physics Lab +* Author: Mark Plett (Adapted from gr_how_t0_write_a_block_3.2 +* Description: +* This block is a pass through to exercise the logging module gr.error_logger. +**************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <gr_log.h> + |