Commit Graph

32 Commits

Author SHA1 Message Date
Bill Somerville 80448bfb57
Avoid wide to narrow(UTF-8) conversion errors causing aborts 2021-06-12 14:15:39 +01:00
Bill Somerville 24b4e4a540
Make sure diagnostic log configuration file parse errors are logged
Parse  errors revert  to default  logging to  wsjtx_syslog.log with  a
suitable error message therein.
2021-03-11 01:18:38 +00:00
Bill Somerville ca6280a6df
Reduce maximum diagnostic log file size before rotation to 5 Mbyte 2021-02-14 13:19:41 +00:00
Bill Somerville 3967660297
Improved handling of exceptions and logging 2021-01-27 18:02:01 +00:00
Bill Somerville 538d0eedd5
Change to wide character logging and handle wide character file paths 2020-12-04 19:01:05 +00:00
Bill Somerville 917e87cee5
Handle Qt logging category when redirecting to SYSLOG channel 2020-12-02 00:40:37 +00:00
Bill Somerville 3352220715
Clean up logging initialization and setup 2020-11-28 13:49:35 +00:00
Bill Somerville b834645bf7
Debian 9 backwards compatibility 2020-11-20 13:45:44 +00:00
Bill Somerville f44b83038f
Revert "Temporarily remove global Boost::log loggers"
This reverts commit 5a9b56bfc0.
2020-11-13 22:24:34 +00:00
Bill Somerville b1709dbfea
Revert "Restoring more Boost::log functionality"
This reverts commit 9c937cca23.
2020-11-13 22:24:25 +00:00
Bill Somerville 2989e7d189
Revert "backing out a smaller chunk of Boost::log functionality"
This reverts commit 5993b3c75a.
2020-11-13 22:24:20 +00:00
Bill Somerville 8c5e362830
Revert "Another approach to track down a segmentation fault"
This reverts commit 403528e436.
2020-11-13 22:23:58 +00:00
Bill Somerville 403528e436
Another approach to track down a segmentation fault 2020-11-13 19:32:56 +00:00
Bill Somerville 5993b3c75a
backing out a smaller chunk of Boost::log functionality 2020-11-13 18:29:23 +00:00
Bill Somerville 9c937cca23
Restoring more Boost::log functionality 2020-11-13 18:13:16 +00:00
Bill Somerville 5a9b56bfc0
Temporarily remove global Boost::log loggers 2020-11-13 16:04:17 +00:00
Bill Somerville 477b99ea45
Correct a log message 2020-10-11 00:02:49 +01:00
Bill Somerville 6f826a2a44
Guard against null pointers in QMessageLogContext 2020-10-03 04:06:04 +01:00
Bill Somerville 24b2487abe
Fix Boost linking 2020-10-03 02:36:27 +01:00
Bill Somerville 80feb93e6f
Rotate log on the 1st of the month 2020-10-03 00:54:05 +01:00
Bill Somerville a4e636cd52
Enable Boost version checking 2020-10-02 21:38:50 +01:00
Bill Somerville 39bbf57bf9
Boost version <1.70 compatibility 2020-10-02 21:32:48 +01:00
Bill Somerville e8eadcf0a0
Revert "More temporary diags"
This reverts commit 467c52eb31.
2020-10-02 20:55:44 +01:00
Bill Somerville 467c52eb31
More temporary diags 2020-10-02 15:43:27 +01:00
Bill Somerville d7eac1803d
Move global loggers to the global namespace
Avoiding namespace scope globals as initialization order is less well
defined.
2020-10-01 23:32:33 +01:00
Bill Somerville fe4c2b59ee
Revert to narrow character logging 2020-09-27 16:52:19 +01:00
Bill Somerville 6ab7889cd4
Deal with null pointers in QMessageLogContext instances 2020-09-27 16:16:55 +01:00
Bill Somerville 47f85961aa
Better mapping of Hamlib message severity to ours 2020-09-26 15:44:58 +01:00
Bill Somerville 1b941af851
Per channel severity filter for default logging 2020-09-26 15:15:47 +01:00
Bill Somerville 1d43ddd38b
Use wide character logging for efficiency as most o/p is QString 2020-09-26 14:56:16 +01:00
Bill Somerville 3fafbdaaa3
Boost log set up for WSJT-X
Rotated  log files  limited to  ten  saved logs  with timestamped  and
counted file names. Logs written to writeable files directory. Formats
and file  names hard coded  with expression templates  fro efficiency,
but with the ability to provide a user-defined configuration file that
overrides the hard-coded  defaults. The configuration file  must be in
the configuration files directory and named wsjtx_log_config.ini.
2020-09-25 00:50:32 +01:00
Bill Somerville f66788691d
Set up for Boost logging in WSJT-X
uses a  settings file to  define log  sink back-ends, by  default uses
:/wsjtx_log_config.ini  from  the  resources file-system.   Users  may
override  by placing  their own  wsjtx_log_config.ini into  the WSJT-X
config location. The settings file format is as described in the Boost
log
documentation (https://www.boost.org/doc/libs/1_74_0/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.setup.settings_file)
with the additional feature that  allows some pre-defined variables to
be expanded. The  predefined variables refer to  standard locations in
the file-system,  and allow  log files  and rotation  target directory
paths to be specified. The pre-defined variables are:

   DesktopLocation
   DocumentsLocation
   TempLocation
   HomeLocation
   CacheLocation
   GenericCacheLocation
   GenericDataLocation
   AppDataLocation

and  must  be   used  enclosed  on  braces  and  preceded   by  a  '$'
character. E.g. to define the pattern for a sink's log file:

   FileName="${AppLocalDataLocation}/wsjtx_syslog.log"

this would place the log file wsjtx_syslog.log in the WSJT-X log files
directory, on all platforms.
2020-09-18 21:23:11 +01:00