Skip to content

Releases: masatokokubo/debugtrace

DebugTrace-java 3.8.0

Choose a tag to compare

@masatokokubo masatokokubo released this 26 Jul 14:30
  • Added timeZone property to DebugTrace.properties
     
    Examples:
    timeZone = UTC
    timeZone = America/New_York
    timeZone = Asia/Tokyo

  • Added character set and line separator type specification to File logger.
     
    Examples:
    logger = File: /logs/debugtrace.log
    logger = File: UTF-8: /logs/debugtrace.log
    logger = File: UTF-8/lf: /logs/debugtrace.log
    logger = File: UTF-8/cr: /logs/debugtrace.log
    logger = File: UTF-8/crlf: /logs/debugtrace.log
    logger = File: /lf: /logs/debugtrace.log
    logger = File :Shift_JIS: /logs/debugtrace.log
    logger = File: EUC-JP: /logs/debugtrace.log


Japanese

  • DebugTrace.propertiestimeZoneプロパティを追加
     
    例:
    timeZone = UTC
    timeZone = America/New_York
    timeZone = Asia/Tokyo

  • Fileロガーの指定に文字セット改行コードの指定を追加
     
    例:
    logger = File: /logs/debugtrace.log
    logger = File: UTF-8: /logs/debugtrace.log
    logger = File: UTF-8/lf: /logs/debugtrace.log
    logger = File: UTF-8/cr: /logs/debugtrace.log
    logger = File: UTF-8/crlf: /logs/debugtrace.log
    logger = File: /lf: /logs/debugtrace.log
    logger = File :Shift_JIS: /logs/debugtrace.log
    logger = File: EUC-JP: /logs/debugtrace.log

DebugTrace-java 4.1.2

Choose a tag to compare

@masatokokubo masatokokubo released this 21 Jul 08:59

Release to JitPack.

DebugTrace-java 4.1.0

Choose a tag to compare

@masatokokubo masatokokubo released this 14 Jul 04:42
  • Added timeZone property to DebugTrace.properties
     
    Examples:
    timeZone = UTC
    timeZone = America/New_York
    timeZone = Asia/Tokyo

  • Added character set and line separator type specification to File logger.
     
    Examples:
    logger = File: /logs/debugtrace.log
    logger = File: UTF-8: /logs/debugtrace.log
    logger = File: UTF-8/lf: /logs/debugtrace.log
    logger = File: UTF-8/cr: /logs/debugtrace.log
    logger = File: UTF-8/crlf: /logs/debugtrace.log
    logger = File: /lf: /logs/debugtrace.log
    logger = File :Shift_JIS: /logs/debugtrace.log
    logger = File: EUC-JP: /logs/debugtrace.log


Japanese

  • DebugTrace.propertiestimeZoneプロパティを追加
     
    例:
    timeZone = UTC
    timeZone = America/New_York
    timeZone = Asia/Tokyo

  • Fileロガーの指定に文字セット改行コードの指定を追加
     
    例:
    logger = File: /logs/debugtrace.log
    logger = File: UTF-8: /logs/debugtrace.log
    logger = File: UTF-8/lf: /logs/debugtrace.log
    logger = File: UTF-8/cr: /logs/debugtrace.log
    logger = File: UTF-8/crlf: /logs/debugtrace.log
    logger = File: /lf: /logs/debugtrace.log
    logger = File :Shift_JIS: /logs/debugtrace.log
    logger = File: EUC-JP: /logs/debugtrace.log

DebugTrace-java 4.0.0

Choose a tag to compare

@masatokokubo masatokokubo released this 16 Apr 04:59
  • Supported records of Java 16.
var name = new Name("Haruka", "Apple");
DebugTrace.print("name", name);
2023-04-16 08:24:01.903+09:00 name = (record example.Name){first: "Haruka", last: "Apple"} (ReadmeExample.java:27)

DebugTrace-java 4.x.x requires Java 17 or later.


Japanese

  • Java 16のレコードに対応しました。

DebugTrace-java 4.x.xは、Java 17以降が必要です。

DebugTrace-java 3.7.0

Choose a tag to compare

@masatokokubo masatokokubo released this 21 Mar 10:18
  • Added LogOptions class.

  • Added the following methods to DebugTrace class.

    • public static boolean print(String name, boolean value, LogOptions logOptions)
    • public static char print(String name, char value, LogOptions logOptions)
    • public static byte print(String name, byte value, LogOptions logOptions)
    • public static short print(String name, short value, LogOptions logOptions)
    • public static int print(String name, int value, LogOptions logOptions)
    • public static long print(String name, long value, LogOptions logOptions)
    • public static float print(String name, float value, LogOptions logOptions)
    • public static double print(String name, double value, LogOptions logOptions)
    • public static <T> T print(String name, T value, LogOptions logOptions)
    • public static boolean print(String name, BooleanSupplier valueSupplier, LogOptions logOptions)
    • public static int print(String name, IntSupplier valueSupplier, LogOptions logOptions)
    • public static long print(String name, LongSupplier valueSupplier, LogOptions logOptions)
    • public static double print(String name, DoubleSupplier valueSupplier, LogOptions logOptions)
    • public static <T> T print(String name, Supplier<T> valueSupplier, LogOptions logOptions)
  • Changed default values for the following properties.

Property Name New Default Value Old Default Value
minimumOutputSize Integer.MAX_VALUE 5
minimumOutputLength Integer.MAX_VALUE 5

Japanese

  • LogOptionsクラスを追加しました。

  • DebugTraceクラスに以下のメソッドを追加しました。

    • public static boolean print(String name, boolean value, LogOptions logOptions)
    • public static char print(String name, char value, LogOptions logOptions)
    • public static byte print(String name, byte value, LogOptions logOptions)
    • public static short print(String name, short value, LogOptions logOptions)
    • public static int print(String name, int value, LogOptions logOptions)
    • public static long print(String name, long value, LogOptions logOptions)
    • public static float print(String name, float value, LogOptions logOptions)
    • public static double print(String name, double value, LogOptions logOptions)
    • public static <T> T print(String name, T value, LogOptions logOptions)
    • public static boolean print(String name, BooleanSupplier valueSupplier, LogOptions logOptions)
    • public static int print(String name, IntSupplier valueSupplier, LogOptions logOptions)
    • public static long print(String name, LongSupplier valueSupplier, LogOptions logOptions)
    • public static double print(String name, DoubleSupplier valueSupplier, LogOptions logOptions)
    • public static <T> T print(String name, Supplier<T> valueSupplier, LogOptions logOptions)
  • 以下のプロパティのデフォルト値を変更しました。

プロパティ名 新デフォルト値 旧デフォルト値
minimumOutputSize Integer.MAX_VALUE 5
minimumOutputLength Integer.MAX_VALUE 5

DebugTrace-java 3.6.0

Choose a tag to compare

@masatokokubo masatokokubo released this 29 Jan 01:54
  • Fixed a bug where the print method could throw a java.lang.IndexOutOfBoundsException.
  • Added calling source file name and line number to log output of enter method.
  • Removed deprecated method with mapName as an argument.
  • Removed deprecated properties in DebugTrace.properties.
  • Abolished logLevel setting in DebugTrace.properties and made it fixed (Jdk: FINEST, others: TRACE).

Japanese

  • print メソッドで java.lang.IndexOutOfBoundsException がスローされる事があるバグを修正しました。
  • enter メソッドのログ出力に、呼び出し元のソースファイル名と行番号を追加しました。
  • mapName を引数に持つ非推奨のメソッドを削除しました。
  • DebugTrace.properties の非推奨のプロパティを削除しました。
  • DebugTrace.properties で logLevel の設定を廃止し、固定 (Jdk: FINEST, それ以外: TRACE) にしました。

DebugTrace-java 3.5.2

Choose a tag to compare

@masatokokubo masatokokubo released this 20 Nov 06:05
  • Fixed a bug that caused an exception to be thrown in the print method.

Japanese

  • print メソッドで例外がスローされるバグを修正しました。

DebugTrace-java 3.5.1

Choose a tag to compare

@masatokokubo masatokokubo released this 18 Sep 06:34
  • Changed log file output with logger=File: <log file path> to output from the top of the file.
    When outputting by appending, specify with logger=File: +<log file path>.
  • Fixed a bug that throw a NullPointerException on the output of an object of a class
    which <class>.getPackage() returns null.

Japanese

  • logger=File: <ログファイルパス> でのログのファイル出力は、ファイルの先頭から出力するようにしました。
    追記で出力する場合は、logger=File: +<ログファイルパス> で指定してください。
  • <クラス>.getPackage()null を返すクラスのオブジェクトの出力で NullPointerException がスローされるバグを修正しました。

DebugTrace-java 3.5.0

Choose a tag to compare

@masatokokubo masatokokubo released this 19 Jun 04:04
  • Improved the log output of byte[].
  • Changed default values for the following properties.
Property Name New Default Value Old Default Value
minimumOutputSize 16 5
minimumOutputLength 16 5
collectionLimit 128 512
byteArrayLimit 256 8192
stringLimit 256 8192
  • Enabled to specify the package with the reflectionClasses property.
    Example: reflectionClasses = org.debugtrace.example.

Japanese

  • byte[] の出力内容を改善しました。
  • 以下のプロパティのデフォルト値を変更しました。
プロパティ名 新デフォルト値 旧デフォルト値
minimumOutputSize 16 5
minimumOutputLength 16 5
collectionLimit 128 512
byteArrayLimit 256 8192
stringLimit 256 8192
  • reflectionClasses プロパティでパッケージを指定できるようにしました。
    例: reflectionClasses = org.debugtrace.example.

DebugTrace-java 3.4.0

Choose a tag to compare

@masatokokubo masatokokubo released this 04 Jun 22:54
  • Added File logger to output directly to a file.
  • The following contents have been added to the log at the start.
    • System.getProperty("java.vendor")
    • System.getProperty("java.runtime.name")
    • System.getProperty("java.runtime.version")

Japanese

  • ファイルに直接出力する File ロガーを追加しました。
  • 開始時のログに以下の内容を追加しました。
    • System.getProperty("java.vendor")
    • System.getProperty("java.runtime.name")
    • System.getProperty("java.runtime.version")