Commit Graph

6705 Commits

Author SHA1 Message Date
Bill Somerville 1b941af851
Per channel severity filter for default logging 2020-09-26 15:15:47 +01:00
Bill Somerville 030c8868ab
Dump current settings to trace log at startup 2020-09-26 15:14:51 +01:00
Bill Somerville d587325f65
Sample user-defied log configuration file 2020-09-26 15:13:52 +01:00
Bill Somerville 396f128ece
Make use of different severities for rig control logging 2020-09-26 15:13:29 +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 db9b2d538d
Conversions to QString for user-defined Qt types 2020-09-26 13:57:21 +01:00
Bill Somerville 4b85d916ec
Updates to qmake project include files 2020-09-25 02:42:17 +01:00
Bill Somerville dc1fdd9562
Remove some obsolete CMake options 2020-09-25 02:41:47 +01:00
Bill Somerville cbd4f109a8
Add a log channel for rig control
RIGCTRL is defined as a log channel for rig control messages and the
appropriate logger is made available to children of the Transceiver
class. Use Transceiver::logger() to access the logger.

Switched existing rig control QDebug messages to Boost logging.
2020-09-25 02:37:41 +01:00
Bill Somerville bd529c0ce5
Merge branch 'develop' into feat-boost-log 2020-09-25 00:54:51 +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 98997fb745
Basic implementation of some log sinks using the Boost log library
A sink called SYSLOG that is intended to consume all log messages.

A sink called DATALOG that is intended for data logging.
2020-09-24 18:55:00 +01:00
Bill Somerville e83b91de95
Move ExceptionCatchingApplication class to its own header 2020-09-24 18:32:58 +01:00
Bill Somerville e50e712fdd
Start using class NonInheritingProcess 2020-09-24 17:57:06 +01:00
Bill Somerville 1a6474976c
Wrap QProcess to avoid inherited handles causing issues on Windows 2020-09-24 17:53:21 +01:00
Bill Somerville d1bb70fd1b
Show busy cursor while enumerating audio devices 2020-09-22 12:18:23 +01:00
Bill Somerville 86c76be111
Merge branch 'develop' into feat-boost-log 2020-09-22 11:23:33 +01:00
Joe Taylor 8c9acfc464 Set default freq for JT9 on 2200 m to 0.136000 MHz. 2020-09-21 14:45:17 -04:00
Joe Taylor 9fe2fc6de0 Fix two problems: sometime incorrect setting of RxFreq in WideGraph, and incorrect timestamp for FST4W-120 and FST4W-300 decodes in ALL.TXT. 2020-09-21 14:35:16 -04:00
Bill Somerville b6d95d54d3
Merge branch 'develop' into feat-boost-log 2020-09-20 23:50:33 +01:00
Bill Somerville 542ffe8311
Improve audio device handling and error recovery
where possible  audio devices that  disappear are not  forgotten until
the user selects another device, this should allow temporarily missing
devices or forgetting  to switch on devices before  starting WSJT-X to
be  handled more  cleanly. If  all else  fails, visiting  the Settings
dialog and  clicking OK should  get things  going again. Note  that we
still  do not  have  a  reliable way  of  detecting  failed audio  out
devices, in that  case selecting another device and  then returning to
the original should work.

Enumerating  audio devices  is expensive  and on  Linux may  take many
seconds per  device. To avoid  lengthy blocking behaviour until  it is
absolutely necessary,  audio devices are  not enumerated until  one of
the "Settings->Audio" device drop-down lists is opened. Elsewhere when
devices  must be  discovered  the  enumeration stops  as  soon as  the
configured device is  discovered. A status bar message  is posted when
audio devices are being enumerated as a reminder that the UI may block
while this is happening.

The message box warning about  unaccounted-for input audio samples now
only triggers when  >5 seconds of audio appears to  be missing or over
provided. Hopefully this will make the warning less annoying for those
that are  using audio sources  with high and/or variable  latencies. A
status  bar message  is still  posted for  any amount  of audio  input
samples  unaccounted for  >1/5 second,  this message  appearing a  lot
should be considered as notification that  there is a problem with the
audio sub-system, system load is  too high, or time synchronization is
stepping the PC clock rather  than adjusting the frequency to maintain
monotonic clock ticks.
2020-09-20 18:20:16 +01:00
Joe Taylor 1ab59a8d6b Fully configure WideGpahe after switching to JT65 mode. 2020-09-20 10:17:27 -04:00
Joe Taylor e79c5f6576 Minor edits to User Guide. 2020-09-20 10:16:08 -04:00
Joe Taylor 0ab3e5116f Fix several flaws in the loop-over-NB logic in the FST4 decoder. 2020-09-19 10:08:42 -04:00
Bill Somerville 3021aa7d82
Switch to direct boost logging for L10nLoader class 2020-09-18 21:37:08 +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
Bill Somerville b420c9f6d3
Basic support for using the Boost log library 2020-09-18 21:12:53 +01:00
Joe Taylor 2af01ebaa1 Fix a flaw in the loop-over NB logic. There are more flaws! 2020-09-18 15:52:33 -04:00
Bill Somerville 0bca52d2d8
Switching to consuming Boost as external libraries 2020-09-18 18:40:14 +01:00
Joe Taylor 327808a0bb One more try at fixing the Fmax() startup problem that Steve sees. 2020-09-18 13:33:30 -04:00
Joe Taylor f0ed93cdd0 In the NB-loop, don't cycle around a decode attempt for the npct=0 pass. 2020-09-18 11:45:28 -04:00
Joe Taylor 52bdd57e57 Implement NB=-1%, NB=-2%. Fix a startup problem with WideGraps's fMax value. 2020-09-18 11:30:23 -04:00
Joe Taylor 375a869a51 Revert "Revert "Very basic code (including some diagnostics) for "try all NB settings". Will remove it again.""
This reverts commit 033cc65d08.
2020-09-18 09:01:51 -04:00
Joe Taylor 033cc65d08 Revert "Very basic code (including some diagnostics) for "try all NB settings". Will remove it again."
This reverts commit bcf7f36b9c.
2020-09-17 19:30:07 -04:00
Joe Taylor bcf7f36b9c Very basic code (including some diagnostics) for "try all NB settings". Will remove it again. 2020-09-17 19:28:55 -04:00
Steven Franke 7d58df4cc1 In FST4 mode with Single Decode not checked, move candidates within 20 Hz of nfqso to the top of the list. 2020-09-17 14:22:38 -05:00
Joe Taylor 41aa5dae74 Make the FTol control invisible in FST4 if Single decode is not checked. 2020-09-17 12:58:59 -04:00
Joe Taylor e60fc1ca19 FST4 GUI controls for FLow, FHigh, should disappear when Single Decode is checked. And some related improvements. 2020-09-16 20:16:32 -04:00
Joe Taylor facd80dbf4 Merge branch 'develop' of bitbucket.org:k1jt/wsjtx into develop 2020-09-16 17:25:23 -04:00
Joe Taylor 21dc6a5c59 Connect the FLow and FHigh limits for FST4 decoding. 2020-09-16 17:23:59 -04:00
Joe Taylor 2266e8dbb7 Add FLow and FHigh spinner controls to set the FST4 decoding range. 2020-09-16 17:02:40 -04:00
Bill Somerville 906abd8599
Merge branch 'develop' into feat-boost-log 2020-09-16 13:47:00 +01:00
Bill Somerville 9356bec3a5
Updated translation files 2020-09-16 13:43:07 +01:00
Bill Somerville 2755afe466
Updated Catalan l10n, tnx to Xavi, EA3W 2020-09-16 13:42:15 +01:00
Bill Somerville bdabea36d0
Merge branch 'develop' into feat-boost-log 2020-09-16 11:53:26 +01:00
Bill Somerville e48f71f424
Updated Spanish l10n, tnx Cédric, EA4AC 2020-09-16 11:45:55 +01:00
Bill Somerville d544f5ed38
Merge branch 'develop' into feat-boost-log 2020-09-15 16:50:55 +01:00
Bill Somerville 10fbcfc7d0
Updated l10n .TS files 2020-09-15 16:38:17 +01:00
Bill Somerville baa9c4fdd4
Updated Italian l10n, tnx Marco, PY1ZRJ 2020-09-15 16:37:22 +01:00
Bill Somerville c9e3c56c8e
Updated Spanish l10n, tnx Cédric, EA4AC 2020-09-15 16:35:52 +01:00