aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Logging.hs
AgeCommit message (Collapse)Author
2017-07-06Logging: added MacroAlreadyDefined.John MacFarlane
2017-06-25Fixed log message for InvalidLang.John MacFarlane
2017-06-25Added InvalidLang to LogMessage.John MacFarlane
2017-06-19Separated tracing from logging.John MacFarlane
Formerly tracing was just log messages with a DEBUG log level. We now make these things independent. Tracing can be turned on or off in PandocMonad using `setTrace`; it is independent of logging. * Removed `DEBUG` from `Verbosity`. * Removed `ParserTrace` from `LogMessage`. * Added `trace`, `setTrace` to `PandocMonad`.
2017-06-18In producing PDFs, warn if the font is missing some characters.John MacFarlane
* Added `MissingCharacter` to `LogMessage` in Text.Pandoc.Logging. * Parse the (xe)latex log for missing character warnings and issue the warning. Closes #3742.
2017-06-12Changed "extracting..." warning to a regular log message.John MacFarlane
This makes it sensitive to proper verbosity settings. (It is now treated as INFO rather than WARNING, so one doesn't get these messages for creation of tmp images while making a pdf.) API changes: * Removed extractMediaBag from Text.Pandoc.MediaBag. * Added Extracting as constructor for LogMessage.
2017-05-25Markdown reader: warn for notes defined but not used.John MacFarlane
Closes #1718. Parsing.ParserState: Make stateNotes' a Map, add stateNoteRefs.
2017-05-24Logging: Made SkippedContent WARNING not INFO.John MacFarlane
2017-05-21Text.Pandoc.App: ToJSON and FromJSON instances for Opts.John MacFarlane
This can be used e.g. to pass options via web interface, such as trypandoc.
2017-05-13Update dates in copyright noticesAlbert Krewinkel
This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
2017-03-13RST writer: convert to PandocMonad, report on unrendered raw items.John MacFarlane
2017-03-13Highlighting: highlighting now returns an Either rather than Maybe.John MacFarlane
This allows us to display error information returned by the skylighting library. Display a warning if the highlighting library throws an error.
2017-03-12Issue warning for duplicate header identifiers.John MacFarlane
As noted in the previous commit, an autogenerated identifier may still coincide with an explicit identifier that is given for a header later in the document, or with an identifier on a div, span, link, or image. This commit adds a warning in this case, so users can supply an explicit identifier. * Added `DuplicateIdentifier` to LogMessage. * Modified HTML, Org, MediaWiki readers so their custom state type is an instance of HasLogMessages. This is necessary for `registerHeader` to issue warnings. See #1745.
2017-03-09Logging: Added NoLangSpecified, use toConstr to avoid boilerplate.John MacFarlane
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane
2017-03-04Logging: Added NoTitleElement constructor for LogMessage.John MacFarlane
2017-02-24Logging: Remove UsingResourceFrom, add CouldNotConvertImageJohn MacFarlane
2017-02-24Class: Add stResourcePath to CommonState, getResourcePath, setResourcePath.John MacFarlane
To be used in implementing `\graphicspath` in LaTeX, and possibly in things like PDF production via context. Use resource path in fetchItem. Issue an info message if we get a resource from somewhere other than ".". Added UsingResourceFrom to log message.
2017-02-23Put makeSelfContained in PandocMonad instead of IO.John MacFarlane
This removes the need to pass MediaBag around and improves exceptions. It also opens up the possibility of using makeSelfContained purely.
2017-02-15Add CircularReference constructor to LogMessage.John MacFarlane
2017-02-11Rename logMessagesToJSON -> encodeLogMessages.John MacFarlane
2017-02-11Logging: export logMessagesToJSON.John MacFarlane
Use a deterministic order for fields.
2017-02-11Use new warnings throughout the code base.John MacFarlane
2017-02-10Logging: added ToJSON instance and showLogMessage.John MacFarlane
This gives us the possibility of both machine-readable and human-readable output for log messages. See #3392.
2017-02-10Added Text.Pandoc.Logging (exported module).John MacFarlane
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.