Commit graph

2 commits

Author SHA1 Message Date
John MacFarlane
8ad7e2c21f Logging: added ToJSON instance and showLogMessage.
This gives us the possibility of both machine-readable
and human-readable output for log messages.

See #3392.
2017-02-10 22:06:07 +01:00
John MacFarlane
5e1249481b Added Text.Pandoc.Logging (exported module).
This now contains the Verbosity definition previously
in Options, as well as a new LogMessage datatype that
will eventually be used instead of raw strings for
warnings.

This will enable us, among other things, to provide
machine-readable warnings if desired.

See #3392.
2017-02-10 20:59:54 +01:00