Commit graph

46 commits

Author SHA1 Message Date
Vikram Rajkumar
3d17836a1e Remove extraneous log config setting 2015-03-25 20:07:19 -04:00
Daniel Larimer
374f141f0a Merge branch 'master' of github.com:BitShares/fc 2015-02-23 14:02:06 -05:00
Daniel Larimer
537029f09f fix build 2015-02-23 14:01:58 -05:00
Vikram Rajkumar
c3bc573af7 Fix Mac build 2015-02-23 11:08:55 -05:00
SynaptiCAD User
42fcebd473 Remove unnecessary locking around log sending 2015-02-22 14:07:27 -05:00
SynaptiCAD User
30e52b6b01 Fix GELF logging to split long messages, use compression 2015-02-22 14:07:05 -05:00
SynaptiCAD User
859282305d Better format log message context 2015-01-21 09:50:14 -05:00
Eric Frias
f3065b367e Add log appender that sends logs in GrayLog Extended Log Format 2015-01-20 16:13:26 -05:00
Vikram Rajkumar
f948bd759d Use ISO standard delimited timestamp string serialization 2014-10-28 18:54:49 -04:00
Eric Frias
307252e23a Call fc:🧵:quit() on thread destruction, and remove code that explicitly terminates threads from the destructors of the objects that own those threads.
Fix fc::thread to set the thread name in the Debugger when the name is set after thread construction.
When terminating a thread, cancel any tasks that have been schedule()d or async()ed but have not yet started executing.
When canceling a task blocked on a fc::mutex, notify the thread to reschedule the task to allow it to clean up the mutex's block list.
Fix a bug in managing the recursive lock count when tasks block on a fc::mutex
Reorder the code that manages the hard links for log files to avoid an exception generated by unlinking a locked file on Windows.
2014-10-21 10:25:28 -04:00
Eric Frias
4e83427df0 Improvements for handling unicode filenames on Windows. When converting fc::path to/from fc::variant, use utf8 encoding. Replace several places where we use a std::ifstream and open it with a char* filename with a boost::filesystem::ifstream and open it with a boost::filesystem::path, which does unicode correctly. 2014-10-09 16:21:52 -04:00
Eric Frias
8def04f341 Add a path::preferred_string() function that generates a string in the platform's preferred format, using backslashes on win32 (uses boost::filesystem::path::make_preferred()).
Modify the log file configuration and rotating code to call to_native_ansi_path() and do more paths manipulation in fc::path objects and less in std::strings, in an attempt to improve BitShares/bitshares_toolkit#791
2014-09-25 08:57:31 -04:00
Eric Frias
ac385d1f6b Allow the user to supply a reason string when canceling a task (useful for debugging) 2014-08-27 14:07:44 -04:00
Eric Frias
27096f15a7 Log the names of tasks to the log file (now contains thread_name:task_name} 2014-08-24 18:33:05 -04:00
Nathan Hourt
9e75d47ba3 Fix to an issue causing a thread to exit if any fiber therein self-cancels 2014-08-21 14:36:29 -04:00
Eric Frias
d847f6469a Allow us to require assigning descriptions to all async tasks to aid in debugging 2014-07-27 17:37:21 -04:00
dnotestein
9e320a3db8 Add descriptions for a bunch of async tasks, remove logging during thread::quit to avoid crashes for now until we cleanup thread quit code 2014-07-27 00:09:15 -04:00
Vikram Rajkumar
3be05ef822 Merge branch 'master' of github.com:InvictusInnovations/fc 2014-07-26 22:29:22 -04:00
Vikram Rajkumar
48837f3116 Add time_point_sec::to_iso_{extended_}string() 2014-07-26 21:05:11 -04:00
Eric Frias
600ae24657 separate one try/catch into two blocks during file_appender destructor 2014-07-26 15:05:26 -04:00
Eric Frias
b6f8570c35 Lock mutex during more of the log rotation process (attempting to prevent crashes that have been seen while logging at the same time as log rotation) 2014-07-16 13:39:14 -04:00
Vikram Rajkumar
18611eccb9 Fix log rotation scheduling bug 2014-07-05 16:22:25 -04:00
Vikram Rajkumar
e9b1b8ec2e Use a separate thread for log compression 2014-07-03 17:24:06 -04:00
Vikram Rajkumar
223f0005f5 Hardlink from most recent log to original filename during rotation 2014-07-03 02:55:30 -04:00
Vikram Rajkumar
b522f12a0e Use ISO format timestamps for rotated log files 2014-07-03 02:17:03 -04:00
Vikram Rajkumar
b1e677bcee Implement optional LZMA compression for rotated logs 2014-07-03 01:27:58 -04:00
Vikram Rajkumar
cc1ef61cd6 Logs are now rotated on startup if rotation is enabled 2014-07-03 01:16:46 -04:00
Vikram Rajkumar
c0187865ea Implement log file rotation 2014-07-02 17:36:21 -04:00
dnotestein
87a93940d0 Display times in UTC for fc logging. 2014-06-24 16:29:59 -04:00
Daniel Larimer
4c59f48aa1 fix log_message variant conversion bug that stomped methodname 2014-06-24 12:12:30 -04:00
Daniel Larimer
c7013d3eea update log_message to take std::string rather than const char* 2014-06-19 11:29:57 -04:00
Daniel Larimer
36d657fb62 enhance console appender 2014-06-11 23:41:10 -04:00
Daniel Larimer
b379449cda fix bug where default logging is optimized out in release builds 2014-06-07 17:34:34 -04:00
Daniel Larimer
17aefe29de using explicit bool operator for optional 2014-05-20 11:25:31 -04:00
Daniel Larimer
fd00bddcb4 update logging to create parent directory if it does not exist 2014-05-17 16:38:32 -04:00
valzav
102e0c4ab8 fixed a bug in configure_logging that made adding more than one logger impossible 2014-05-07 20:58:54 -07:00
Eric Frias
8bdc6fd219 Colorize fc log messages on win32 2014-04-06 18:06:43 -04:00
Daniel Larimer
fb2fddf25c update logger 2014-01-14 14:00:30 -05:00
Daniel Larimer
243679c658 increased width of file:line field in console appender 2013-08-06 12:35:21 -04:00
Daniel Larimer
fbadc5bdfa fix uninitialized variables in ecc::compact_signature (fc::array) and a few other places 2013-08-02 14:32:59 -04:00
Daniel Larimer
f5f3bb5102 error cleanup, log cleanup, bug fixes 2013-07-18 22:19:19 -04:00
Daniel Larimer
49a83ec7f5 fixed-width formatting on console appender 2013-07-18 19:09:48 -04:00
Daniel Larimer
58d950b56f Adding mmap_struct & features to fc::array
Fixed uninit bug in logger_config
2013-07-03 21:35:30 -04:00
Daniel Larimer
383144938e fix formatting with logging to file 2013-07-03 13:26:23 -04:00
Daniel Larimer
b07aed4a22 Update use of fc::string and fc::vector. 2013-06-27 14:19:08 -04:00
Daniel Larimer
59a121d64b Updating FC with changes from phoenix-int 2013-06-05 15:19:00 -04:00