component-log

Beautify log printing component

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

io.github.mavenreposs
ArtifactId

ArtifactId

component-log
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

component-log
Beautify log printing component
Project URL

Project URL

https://github.com/mavenreposs/component-log
Source Code Management

Source Code Management

https://github.com/mavenreposs/component-log

Download component-log

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.mavenreposs/component-log/ -->
<dependency>
    <groupId>io.github.mavenreposs</groupId>
    <artifactId>component-log</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.mavenreposs/component-log/
implementation 'io.github.mavenreposs:component-log:1.0.0'
// https://jarcasting.com/artifacts/io.github.mavenreposs/component-log/
implementation ("io.github.mavenreposs:component-log:1.0.0")
'io.github.mavenreposs:component-log:jar:1.0.0'
<dependency org="io.github.mavenreposs" name="component-log" rev="1.0.0">
  <artifact name="component-log" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.mavenreposs', module='component-log', version='1.0.0')
)
libraryDependencies += "io.github.mavenreposs" % "component-log" % "1.0.0"
[io.github.mavenreposs/component-log "1.0.0"]

Dependencies

compile (6)

Group / Artifact Type Version
com.google.code.gson : gson jar 2.7
org.json : json jar 20210307
org.jetbrains : annotations jar 20.1.0
log4j : log4j jar 1.2.17
org.slf4j : slf4j-api jar 1.7.28
org.slf4j : slf4j-simple jar 1.7.28

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter jar 5.7.1

Project Modules

There are no modules declared in this project.

component-log

RCLog

美化终端日志打印输出。

用来打印调试信息

RCLog::debug("用来打印调试信息");

用来打印一般提示信息

RCLog::info("用来打印一般提示信息");

用来打印警告信息,这种信息一般是提示开发者需要注意,有可能会出现问题!

RCLog::warn("用来打印警告信息,这种信息一般是提示开发者需要注意,有可能会出现问题!");

用来打印错误崩溃日志信息,例如在try-catch的catch中输出捕获的错误信息。

RCLog::error("用来打印错误崩溃日志信息,例如在try-catch的catch中输出捕获的错误信息。");

用来打印xml字符串格式的调试信息

RCLog::xml("<?xml version="1.0" encoding="UTF-8"?><html><title>this is a title</title><body>这个是网页</body></html>");

用来打印json字符串格式的调试信息

RCLog::json("{"id":221,"name":"my name is RCLog","desc":"this is description!"}");

用来打印Map/List/POJO可以被JSON化的Object对象调试信息

User user = new User();
user.id = 102;
user.name = "RCLog";
user.age = 22;
RCLog::object(user);

用来打印换行日志

RCLog.info("第一行日志\n换行输出日志");

用来打印异常信息

try {
    Object obj = null;
    obj.toString();
} catch (Exception e) {
    RCLog.error(e, "空指针异常");
}
io.github.mavenreposs

Versions

Version
1.0.0