如何在NetBeans中使用tinylog [英] How to use tinylog with netbeans

查看:52
本文介绍了如何在NetBeans中使用tinylog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将tinylog与netbeans一起使用.我对此有一些疑问:

I am trying to use tinylog with netbeans. I have some questions regarding that:

  1. 如何使用NetBeans Maven Web应用程序的属性文件配置tinylog.

  1. How to configure tinylog using a property file for netbeans maven web application.

如何获取JSON格式的日志.

How to get logs in JSON format.

如果我配置了多个编写器,那么我如何才能仅登录到某个编写器并跳过其他编写器.

If I have more than one writers configured then How can I log to only a certain writer and skip other writers.

推荐答案

第一个问题的答案:

对于Maven项目(无论使用哪种IDE),应将 tinylog.properties 文件放入 src/main/resources 文件夹中.请参见 Maven项目结构-非Java代码(例如属性文件)在maven术语中称为资源.

In case of maven project (regardless of the IDE), you should put tinylog.properties file into src/main/resources folder. See Maven project structure - non-java code, such as a property file, is called a resource in maven terminology.

这篇关于如何在NetBeans中使用tinylog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆