[Git][java-team/libminlog-java][upstream] New upstream version 1.3.1
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Mon Sep 30 08:28:05 BST 2024
Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / libminlog-java
Commits:
97068d47 by Emmanuel Bourg at 2024-09-30T09:25:08+02:00
New upstream version 1.3.1
- - - - -
5 changed files:
- .classpath
- + .settings/org.eclipse.jdt.core.prefs
- + CONTRIBUTING.md
- pom.xml
- src/com/esotericsoftware/minlog/Log.java
Changes:
=====================================
.classpath
=====================================
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/.svn/*" kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="output" path="bin"/>
</classpath>
=====================================
.settings/org.eclipse.jdt.core.prefs
=====================================
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
=====================================
CONTRIBUTING.md
=====================================
@@ -0,0 +1,7 @@
+Project license(s): 3-Clause BSD License
+
+* You will only Submit Contributions where You have authored 100% of the content.
+
+* You will only Submit Contributions to which You have the necessary rights. This means that if You are employed You have received the necessary permissions from Your employer to make the Contributions.
+
+* Whatever content You Contribute will be provided under the Project License(s).
=====================================
pom.xml
=====================================
@@ -9,7 +9,7 @@
<groupId>com.esotericsoftware</groupId>
<artifactId>minlog</artifactId>
- <version>1.3.0</version>
+ <version>1.3.1</version>
<packaging>bundle</packaging>
<name>MinLog</name>
@@ -18,8 +18,8 @@
<licenses>
<license>
- <name>New BSD License</name>
- <url>http://www.opensource.org/licenses/bsd-license.php</url>
+ <name>3-Clause BSD License</name>
+ <url>https://opensource.org/licenses/BSD-3-Clause</url>
<distribution>repo</distribution>
</license>
</licenses>
@@ -34,9 +34,9 @@
<scm>
<url>https://github.com/EsotericSoftware/minlog</url>
- <connection>scm:git:https://github.com/EsotericSoftware/minlog.git</connection>
- <developerConnection>scm:git:https://github.com/EsotericSoftware/minlog.git</developerConnection>
- <tag>minlog-1.3.0</tag>
+ <connection>scm:git:git at github.com:EsotericSoftware/minlog.git</connection>
+ <developerConnection>scm:git:git at github.com:EsotericSoftware/minlog.git</developerConnection>
+ <tag>HEAD</tag>
</scm>
<build>
@@ -71,6 +71,10 @@
</goals>
</execution>
</executions>
+ <configuration>
+ <!-- required for java8, so that javadoc errors don't fail the build -->
+ <additionalparam>-Xdoclint:none</additionalparam>
+ </configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
@@ -90,6 +94,9 @@
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
+ <manifestEntries>
+ <Automatic-Module-Name>com.esotericsoftware.minlog</Automatic-Module-Name>
+ </manifestEntries>
</archive>
</configuration>
</plugin>
=====================================
src/com/esotericsoftware/minlog/Log.java
=====================================
@@ -3,12 +3,9 @@ package com.esotericsoftware.minlog;
import java.io.PrintWriter;
import java.io.StringWriter;
-import java.util.Date;
-/**
- * A low overhead, lightweight logging system.
- * @author Nathan Sweet <misc at n4te.com>
- */
+/** A low overhead, lightweight logging system.
+ * @author Nathan Sweet <misc at n4te.com> */
public class Log {
/** No logging at all. */
static public final int LEVEL_NONE = 6;
@@ -23,10 +20,8 @@ public class Log {
/** Trace messages. A lot of information is logged, so this level is usually only needed when debugging a problem. */
static public final int LEVEL_TRACE = 1;
- /**
- * The level of messages that will be logged. Compiling this and the booleans below as "final" will cause the compiler to
- * remove all "if (Log.info) ..." type statements below the set level.
- */
+ /** The level of messages that will be logged. Compiling this and the booleans below as "final" will cause the compiler to
+ * remove all "if (Log.info) ..." type statements below the set level. */
static private int level = LEVEL_INFO;
/** True when the ERROR level will be logged. */
@@ -40,9 +35,7 @@ public class Log {
/** True when the TRACE level will be logged. */
static public boolean TRACE = level <= LEVEL_TRACE;
- /**
- * Sets the level to log. If a version of this class is being used that has a final log level, this has no affect.
- */
+ /** Sets the level to log. If a version of this class is being used that has a final log level, this has no affect. */
static public void set (int level) {
// Comment out method contents when compiling fixed level JARs.
Log.level = level;
@@ -77,9 +70,7 @@ public class Log {
set(LEVEL_TRACE);
}
- /**
- * Sets the logger that will write the log messages.
- */
+ /** Sets the logger that will write the log messages. */
static public void setLogger (Logger logger) {
Log.logger = logger;
}
@@ -169,17 +160,15 @@ public class Log {
private Log () {
}
- /**
- * Performs the actual logging. Default implementation logs to System.out. Extended and use {@link Log#logger} set to handle
- * logging differently.
- */
+ /** Performs the actual logging. Default implementation logs to System.out. Extended and use {@link Log#logger} set to handle
+ * logging differently. */
static public class Logger {
- private long firstLogTime = new Date().getTime();
+ private final long firstLogTime = System.currentTimeMillis();
public void log (int level, String category, String message, Throwable ex) {
StringBuilder builder = new StringBuilder(256);
- long time = new Date().getTime() - firstLogTime;
+ long time = System.currentTimeMillis() - firstLogTime;
long minutes = time / (1000 * 60);
long seconds = time / (1000) % 60;
if (minutes <= 9) builder.append('0');
@@ -224,9 +213,7 @@ public class Log {
print(builder.toString());
}
- /**
- * Prints the message to System.out. Called by the default implementation of {@link #log(int, String, String, Throwable)}.
- */
+ /** Prints the message to System.out. Called by the default implementation of {@link #log(int, String, String, Throwable)}. */
protected void print (String message) {
System.out.println(message);
}
View it on GitLab: https://salsa.debian.org/java-team/libminlog-java/-/commit/97068d47fed6cf02dd2c400bf6cbb1ec0ea92b7f
--
View it on GitLab: https://salsa.debian.org/java-team/libminlog-java/-/commit/97068d47fed6cf02dd2c400bf6cbb1ec0ea92b7f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20240930/aba1b36e/attachment.htm>
More information about the pkg-java-commits
mailing list