io.github.jxnflzc.jtools:jtools

jxnflzc's java tools


Licenses
Apache-2.0/libpng-2.0

Documentation

Jtools

jdk 8+ license Apache 2.0

Module

core

  • jtools-core

  • Contains all the following kits.

  • Maven Dependency

    <dependency>
        <groupId>io.github.jxnflzc</groupId>
        <artifactId>jtools-core</artifactId>
        <version>${jtools.core.version}</version>
    </dependency>

log

  • jtools-log

  • The log toolkit can be used for simple log output.

  • The log is divided into 5 levels:DEBUGINFOWARNERRORFATAL

  • Maven Dependency

    <dependency>
        <groupId>io.github.jxnflzc</groupId>
        <artifactId>jtools-log</artifactId>
        <version>${jtools.log.version}</version>
    </dependency>
  • log.properties configuration file

    # %d Log printing time, format:yyyy/MM/dd HH:mm:ss.SSS
    # %t Current thread
    # %l Log level
    # %C Java class name
    # %M Java method name
    # %F Java file name
    # %L Number of log call lines
    # %m Log body
    jtools.log.console.pattern = %d [%t] [%l] %C.%M(%F:%L) - %m
    jtools.log.file.pattern = %d [%t] [%l] %C.%M(%F:%L) - %m
    # Log output level, as follows
    # DEBUG
    # INFO
    # WARN
    # ERROR
    # FATAL
    jtools.log.console.level = DEBUG
    jtools.log.file.level = DEBUG
    # Log output to the local directory name, support time formatting
    jtools.log.file.path = {yyyy}/{MM}
    # Log output to local file name, support time formatting
    jtools.log.file.name = {MM-dd}.log

pattern

  • jtools-pattern

  • Design pattern toolkit, including some design pattern interfaces and abstract classes.

  • Maven Dependency

    <dependency>
        <groupId>io.github.jxnflzc</groupId>
        <artifactId>jtools-pattern</artifactId>
        <version>${jtools.pattern.version}</version>
    </dependency>

util

  • jtools-util

  • Util toolkit, provides toolkits related to time and class information.

  • Maven Dependency

    <dependency>
        <groupId>io.github.jxnflzc</groupId>
        <artifactId>jtools-util</artifactId>
        <version>${jtools.util.version}</version>
    </dependency>