折腾:
【已解决】Java中好用的Log日志库
期间,无意间发现,IntelliJ IDEA中添加库时,是可以通过Maven中添加的,只不过速度比较慢而已:

可以在添加Libraries时,选择从Maven去导入:

然后搜索tinylog:
稍等片刻(不过一般速度真的很慢,即使翻墙也很慢),真的搜到了:





然后项目结构中就有了lib下的
tinylog-1.3.5.jar

而对应着之前用直接导入jar包方式导入的,则放在:External Libraries中。
注意到另外生成了iml文件:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?xml version = "1.0" encoding = "UTF-8" ?> <module type = "JAVA_MODULE" version = "4" > <component name = "NewModuleRootManager" inherit - compiler - output = "true" > <exclude - output / > < / content> <orderEntry type = "inheritedJdk" / > <orderEntry type = "sourceFolder" forTests = "false" / > <orderEntry type = "library" name = "okhttp-3.11.0" level = "project" / > <orderEntry type = "library" name = "okio-2.1.0" level = "project" / > <orderEntry type = "library" name = "kotlin-stdlib" level = "project" / > <orderEntry type = "library" name = "kotlin-stdlib-common" level = "project" / > <orderEntry type = "library" name = "org.tinylog:tinylog:1.3.5" level = "project" / > < / component> < / module> |
