htdebeer / pandocomatic

Automate the use of pandoc

Home Page:https://heerdebeer.org/Software/markdown/pandocomatic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging: add the final configuration

plbt5 opened this issue · comments

Indeed, pandocomatic can do a lot of things in preparation of the pandoc conversion, as well as in postprocessing of its result(s). To that end, various ways exist in which the configuration can be extended, modified, added or overwritten, using different configuration files each of which carrying various templates. All in all, the end result of all that configuration data is difficult to determine; at least, I cannot tell the tree for the forest anymore.

It would be helpful if pandocomatic would show the concluding configuration that results from all the default, extended and modified configuration files and templates in its log file, separating its own configuration from pandoc's configuration.

Thanks in advance,
Paul

That's a great idea. Actually, just adding logging alone would be a good idea. Now your only option is to have a verbose output or not, but opting to log to a file instead might be nice as well.

I'm not sure how easy it is to add good logging, though. Pandocomatic has become a bit of a mess, so I'd need to refactor the code base first. So this will be something for the long run, I'm afraid.