Releases: masatokokubo/debugtrace
Release list
DebugTrace-java 3.8.0
-
Added
timeZoneproperty toDebugTrace.properties
Examples:
timeZone = UTC
timeZone = America/New_York
timeZone = Asia/Tokyo -
Added
character setandline separator typespecification toFilelogger.
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.propertiesにtimeZoneプロパティを追加
例:
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
Release to JitPack.
DebugTrace-java 4.1.0
-
Added
timeZoneproperty toDebugTrace.properties
Examples:
timeZone = UTC
timeZone = America/New_York
timeZone = Asia/Tokyo -
Added
character setandline separator typespecification toFilelogger.
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.propertiesにtimeZoneプロパティを追加
例:
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
- 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
-
Added
LogOptionsclass. -
Added the following methods to
DebugTraceclass.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
- Fixed a bug where the
printmethod could throw ajava.lang.IndexOutOfBoundsException. - Added calling source file name and line number to log output of
entermethod. - Removed deprecated method with
mapNameas an argument. - Removed deprecated properties in DebugTrace.properties.
- Abolished
logLevelsetting 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
- Fixed a bug that caused an exception to be thrown in the
printmethod.
Japanese
printメソッドで例外がスローされるバグを修正しました。
DebugTrace-java 3.5.1
- Changed log file output with
logger=File: <log file path>to output from the top of the file.
When outputting by appending, specify withlogger=File: +<log file path>. - Fixed a bug that throw a
NullPointerExceptionon the output of an object of a class
which<class>.getPackage()returnsnull.
Japanese
logger=File: <ログファイルパス>でのログのファイル出力は、ファイルの先頭から出力するようにしました。
追記で出力する場合は、logger=File: +<ログファイルパス>で指定してください。<クラス>.getPackage()がnullを返すクラスのオブジェクトの出力でNullPointerExceptionがスローされるバグを修正しました。
DebugTrace-java 3.5.0
- 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
reflectionClassesproperty.
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
- Added
Filelogger 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")