@@ -15,9 +15,14 @@ using std::cout;
15
15
using std::endl;
16
16
17
17
rsEnv::rsEnv () noexcept {
18
- CStr ts = getenv (" pln_trace_marker" );
18
+ CStr ts = :: getenv (" pln_trace_marker" );
19
19
if (ts) traceMarker_ = ts;
20
20
21
+ ts = ::getenv (" pln_no_logfile" );
22
+ if (not ts) {
23
+ open_pln_logfile (" rs_planner.log" );
24
+ }
25
+
21
26
init ();
22
27
}
23
28
@@ -240,64 +245,64 @@ bool rsEnv::getPidExePath(int pid, std::string& out) noexcept { return true; }
240
245
cout.setf (origF); }
241
246
242
247
void rsEnv::listDevEnv () const noexcept {
243
- lprintf (" \n\t PLN ver. %s\n " , shortVer_.c_str ());
244
- lprintf (" \t compiled: %s\n " , compTimeCS ());
248
+ printf (" \n\t PLN ver. %s\n " , shortVer_.c_str ());
249
+ printf (" \t compiled: %s\n " , compTimeCS ());
245
250
246
251
size_t cxxstd = __cplusplus;
247
- lprintf (" \n (compiler) -- c++std= %zu\n " , cxxstd);
252
+ printf (" \n (compiler) -- c++std= %zu\n " , cxxstd);
248
253
#ifdef __GNUC__
249
- lprintf (" \t __GNUC__ \t\t %i\n " , __GNUC__);
254
+ printf (" \t __GNUC__ \t\t %i\n " , __GNUC__);
250
255
#endif
251
256
#ifdef __GNUC_MINOR__
252
- lprintf (" \t __GNUC_MINOR__ \t %i\n " , __GNUC_MINOR__);
257
+ printf (" \t __GNUC_MINOR__ \t %i\n " , __GNUC_MINOR__);
253
258
#endif
254
259
#ifdef __VERSION__
255
- lprintf (" \t __VERSION__ \t\t %s\n " , __VERSION__);
260
+ printf (" \t __VERSION__ \t\t %s\n " , __VERSION__);
256
261
#endif
257
262
#ifdef __OPTIMIZE__
258
- lprintf (" \t __OPTIMIZE__ \t\t %i\n " , __OPTIMIZE__);
263
+ printf (" \t __OPTIMIZE__ \t\t %i\n " , __OPTIMIZE__);
259
264
#else
260
- lprintf (" \t __OPTIMIZE__ :\t NOT DEFINED => deb binary\n " );
265
+ printf (" \t __OPTIMIZE__ :\t NOT DEFINED => deb binary\n " );
261
266
#endif
262
267
#ifdef __NO_INLINE__
263
- lprintf (" \t __NO_INLINE__ :\t (defined)\n " );
268
+ printf (" \t __NO_INLINE__ :\t (defined)\n " );
264
269
#endif
265
270
#ifdef NDEBUG
266
- lprintf (" \t NDEBUG : (defined) => assert() is disabled\n " );
271
+ printf (" \t NDEBUG : (defined) => assert() is disabled\n " );
267
272
#else
268
- lprintf (" \t NDEBUG : NOT DEFINED => assert() is enabled\n " );
273
+ printf (" \t NDEBUG : NOT DEFINED => assert() is enabled\n " );
269
274
#endif
270
275
271
- lprintf (" \n (modes)\n " );
276
+ printf (" \n (modes)\n " );
272
277
#ifdef NO_GRAPHICS
273
- lprintf (" \t NO_GRAPHICS : \t (defined)\n " );
278
+ printf (" \t NO_GRAPHICS : \t (defined)\n " );
274
279
#endif
275
280
#ifdef RS_PC_MODE
276
- lprintf (" \t RS_PC_MODE :\t (defined)\n " );
281
+ printf (" \t RS_PC_MODE :\t (defined)\n " );
277
282
#endif
278
283
#ifdef PINC_DEVEL_MODE
279
- lprintf (" \t PINC_DEVEL_MODE :\t (defined)\n " );
284
+ printf (" \t PINC_DEVEL_MODE :\t (defined)\n " );
280
285
#endif
281
286
#ifdef NN_FAST_BUILD
282
- lprintf (" \t NN_FAST_BUILD :\t (defined)\n " );
287
+ printf (" \t NN_FAST_BUILD :\t (defined)\n " );
283
288
#endif
284
289
#ifdef ENABLE_ANALYTIC_PLACE
285
- lprintf (" \t ENABLE_ANALYTIC_PLACE :\t (defined)\n " );
290
+ printf (" \t ENABLE_ANALYTIC_PLACE :\t (defined)\n " );
286
291
#endif
287
292
288
- lputs () ;
293
+ cout << endl ;
289
294
290
295
#ifdef _PLN_VEC_BOUNDS_CHECK
291
- lprintf (" \t _PLN_VEC_BOUNDS_CHECK : ON => stl_vector BC enabled\n " );
296
+ printf (" \t _PLN_VEC_BOUNDS_CHECK : ON => stl_vector BC enabled\n " );
292
297
#else
293
- lprintf (" \t _PLN_VEC_BOUNDS_CHECK : OFF => std_vector BC disabled\n " );
298
+ printf (" \t _PLN_VEC_BOUNDS_CHECK : OFF => std_vector BC disabled\n " );
294
299
#endif
295
300
296
301
#ifdef PLN_JEMALLOC
297
302
LIST_DEC (PLN_JEMALLOC);
298
303
#endif
299
304
300
- pln::flush_out ( true ) ;
305
+ cout << endl ;
301
306
}
302
307
303
308
}
0 commit comments