manuskript/manuskript
Jan Wester 8884bac0ed Added logging & proper argument parsing.
Sometimes you want to do just one thing, and in the process of
implementing that one thing, you implement several others. This is one
of those types of commits.

Implementing the argparse library is for the sake of controlling the
logging behaviour as well as other future I have yet to implement.

It has all the standard goodies you'd expect, and I have also ported
over the existing commandline arguments. (They may need a bit of polish
still, but there is no regression compared to before, only improvement.)

The logger is because it really needed to happen for numerous reasons.

It still logs to the terminal, but by default it only does so for
messages classified WARNING and above. These are the things we actively
want users to see. But if this is not good enough, adding the --verbose
flag will increasingly show more (-v shows INFO level and -vv also shows
the DEBUG messages) so that us coders don't have to miss anything in the
most convenient location.

It also logs to a file with the very original filename manuskript.log. I
may have to add commandline and/or settings arguments to improve that at
some point in the future, but there distractions are endless.

The log file contains timestamps and module information for easy
interpretation that are not present on the terminal, and it contains all
messages classified DEBUG and up. Ideally users will just be able to
attach it to an issue(*) to deliver us all the information we need to
help them with their inquiry.

Last but not least, the other reason I needed logging implemented is
that Qt has its own logging framework, and I needed to figure out how to
siphon out the data and make it shut up. But there was no point in doing
that as long as our own logging facilities were lacking...

(*) I have yet to convert all existing print statements over to the new
system, but that is probably going to be the next commit. This one has
enough change in it already.
2021-04-08 18:29:15 +02:00
..
converters Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
exporter Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
functions Fixed LanguageTool spellchecker working with newer versions 2021-04-04 22:30:33 +02:00
importer Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
load_save Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
models Add global search 2021-04-02 14:15:17 +01:00
tests Added logging & proper argument parsing. 2021-04-08 18:29:15 +02:00
ui Several tiny things squashed into one 2021-04-08 18:28:53 +02:00
__init__.py Renaming source folder 2016-02-06 08:38:33 +01:00
enums.py Add global search 2021-04-02 14:15:17 +01:00
loadSave.py Ensure text file open methods use utf-8 encoding 2019-02-27 09:30:16 -07:00
logging.py Added logging & proper argument parsing. 2021-04-08 18:29:15 +02:00
main.py Added logging & proper argument parsing. 2021-04-08 18:29:15 +02:00
mainWindow.py Several tiny things squashed into one 2021-04-08 18:28:53 +02:00
searchLabels.py Add global search 2021-04-02 14:15:17 +01:00
settings.py Added setting to disable counting spaces as chars but requires restart 2020-07-05 01:27:54 +02:00
settingsWindow.py Fixed issue #817 with the settings style picking 2021-02-21 23:59:23 +01:00
version.py ========== manuskript-0.11.0 ========== 2020-01-18 10:37:45 -07:00