Commit graph

33 commits

Author SHA1 Message Date
hagen 10ebcff48e * Log.{cpp,h}:
* use colors only when using stdout
  * use static string array instead bunch of #define's
2016-11-04 00:43:43 +00:00
brain5lug fee5f959fd perfect forwarding for logging arguments 2016-09-16 01:47:53 +03:00
hagen c9836cf0f7 * fix doxygen warnings 2016-05-31 00:34:26 +00:00
orignal 6a453bcc8a check for null pointer 2016-05-30 12:08:20 -04:00
orignal 5a2c4919c6 close previous file first upon repon 2016-05-30 09:41:45 -04:00
hagen 1fae3baaa3 * logger: print also thread id 2016-03-28 14:44:56 +00:00
hagen 38103aaac5 * logger: explicit allow log output 2016-03-28 14:44:54 +00:00
hagen 905cad56d8 * add note 2016-03-28 06:02:56 +00:00
hagen 17fb419fb1 * new logs: code 2016-03-27 00:15:50 +00:00
Jeff Becker c4e5a130ee
don't break win32 2016-03-26 09:49:45 -04:00
Jeff Becker 5261a3e845
add syslog logging option 2016-03-26 09:40:19 -04:00
orignal 61675c20d8 don't delete log file upon HUP 2016-02-29 11:02:55 -05:00
orignal 98d5e0b56d #355. reopen log file by SIGHUP 2016-02-04 13:53:38 -05:00
orignal 7ca1cfab1a use shared_ptr for log's stream 2016-02-04 12:36:58 -05:00
hagen 05043f30dc * tune logs 2016-01-18 09:02:34 +00:00
hagen a0e8fe5848 * implement --loglevel option 2015-12-28 10:54:00 +00:00
hagen 6c0dfc4356 * sane log messages: Log.cpp 2015-12-21 03:00:12 +00:00
orignal 54b2c8bd7e backport fix build for clang 2015-11-20 10:02:54 -05:00
ipslot dfd41385b1 Update Log.cpp
set default log to std::cerr stream
2015-05-12 13:27:02 +06:00
orignal 6bad2daa62 fixed build errors for gcc 4.6 2015-05-06 19:18:00 -04:00
orignal 7c13194d5a don't recalculate timestamp for each log message 2015-05-06 11:24:35 -04:00
orignal bb05bcf39f pass instance of std::ostream for logging from API 2014-12-08 16:27:10 -05:00
Kill Your TV dd4283b7c1 Revert "fixed typo" and "fixed crash for Windows"
This reverts commits c8a80a497d and f7791e5289

This didn't actually fix Windows crash problem. In fact, it still
crashed without --log=0 being set. Changes to the i2pd.vcxproj file
fixed the crashes with VS 2013 > update 1.  i2pd now works with VS 2013
Update 3 and Update 4 RC.

Since these changes didn't have the intended effect, let's remove them.
2014-11-07 14:58:27 +00:00
orignal c8a80a497d fixed typo 2014-11-02 08:28:28 -05:00
orignal f7791e5289 fixed crash for Windows 2014-11-01 21:48:26 -04:00
orignal 11a0bbc368 different log levels 2014-10-28 16:36:17 -04:00
orignal a25fe85b4d print time without date 2014-08-17 07:49:29 -04:00
Mikal Villa 05fa6757ce Adding timestamp to logger. 2014-08-17 07:35:09 +02:00
orignal 334c92bb49 daemonization. 2014-07-02 13:48:45 -04:00
orignal 2062305f88 moved log file from daemon to log 2014-04-24 11:10:46 -04:00
orignal 58939de57e flush log only when queue is empty 2014-04-23 12:49:02 -04:00
chertov 0236879c26 Logging to file directly. Win32 Services can't write to std::cout 2014-04-23 02:10:21 +04:00
orignal 465075d825 Log and queue added 2013-12-10 08:00:13 -05:00