ingomohr / docwriter

API to write docx documents
MIT License
1 stars 0 forks source link

Add Mechanism to Disable/Hide Error-Logs Regarding Missing Styles #72

Open ahmad2702 opened 1 year ago

ahmad2702 commented 1 year ago

For document generation, I use my existing template from my local machine. During generation I get a lot of the following logs:

2022-11-17 11:10:49,144 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,145 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,146 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,146 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,148 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,151 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,152 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,153 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,153 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,154 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,155 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,155 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,156 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,156 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,157 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,158 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,158 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody
2022-11-17 11:10:49,159 ERROR [org.doc.mod.PropertyResolver] (vert.x-eventloop-thread-0) Couldn't find style: ParagraphTextBody

It is required to add a mechanism/support to disable/hide such logs.

The following markdown content can be used in the tests: md-content.md

ingomohr commented 1 year ago

Thank you @ahmad2702 for the feedback! If that styling is required by some library used in docwriter, maybe we can make the doc contain that styling (e.g. fixing the problem instead of suppressing error messages).

I'll attend to this.