我有一个Java项目ami
,它依赖于我的包pdf2svg
,它依赖于Apache PDFBox 1.8.7
。 PDFBox
正在输出我要关闭的(例如org.apache.pdfbox.pdmodel.font.PDSimpleFont
)的大量调试信息。
732 [main] DEBUG org.xmlcml.pdf2svg.PDFPage2SVGConverter - startStream
2243 [main] DEBUG org.apache.pdfbox.pdmodel.font.PDSimpleFont - Debug: 'WinAnsiEncoding' isn't a predefined map, most likely it's embedded in the pdf itself.
2246 [main] DEBUG org.apache.pdfbox.pdmodel.font.PDSimpleFont - Debug: 'WinAnsiEncoding' isn't a predefined map, most likely it's embedded in the pdf itself.
PDFBox无法编辑,我想关闭DEBUG。
我在src/main/resources/log4j.properties
和pdf2svg
中都有ami
个文件,目前包含以下内容
# See the License for the specific language governing permissions and
# limitations under the License.
#
log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
log4j.logger.uk.ac.cam=DEBUG
log4j.logger.org.xmlcml.cml.converters.molecule.cml.CML2CMLConverter=ALL
log4j.logger.org.apache.pdfbox.util=INFO
log4j.logger.org.apache.pdfbox.util.PDFStreamEngine=INFO
log4j.logger.org.apache.pdfbox.pdfparser.PDFObjectStreamParser=INFO
log4j.logger.org.apache.pdfbox.cos.COSDocument=ERROR
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=ERROR
log4j.logger.org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap=INFO
log4j.logger.org.apache.pdfbox.pdmodel.graphics.color.PDSeparation=OFF
log4j.logger.org.apache.pdfbox.pdmodel.graphics.color.PDColorState=ERROR
log4j.logger.org.apache.pdfbox.pdmodel.graphics.color.PDICCBased=INFO
某些命令似乎有效,但其他命令如
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=ERROR
不要关闭输出。我放log4j.properties文件的位置是否重要?这个问题有明显的答案吗?