PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test2.cpp
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 
3 Copyright (c) 2015 pgRouting developers
4 Mail: project@pgrouting.org
5 
6 ------
7 
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 
22 ********************************************************************PGR-GNU*/
23 
24 #define PGR_LOGGER_ON
25 #define PGR_LOGGER_LOC
26 #define PGR_LOGGER_FILE "test-log.log"
27 
28 #include "../src/pgr_logger.h"
29 
30 #include <time.h>
31 
32 int main () {
33  PGR_LOG("message 1");
34  PGR_LOGF("%s at epoch %d\n", "message 2", (int)time(NULL));
35  PGR_LOG("message 3");
36 
37  return 0;
38 }
#define PGR_LOG(str)
Definition: pgr_logger.h:72
#define PGR_LOGF(format,...)
Definition: pgr_logger.h:69
int main()
Definition: test2.cpp:32