Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for formatTimestamp (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static org.apache.maven.cling.utils.CLIReportingUtils.formatDuration;
    import static org.apache.maven.cling.utils.CLIReportingUtils.formatTimestamp;
    
    /**
     * Logs execution events to logger, eventually user-supplied.
     *
     */
    public class ExecutionEventLogger extends AbstractExecutionListener {
        private static final int MAX_LOG_PREFIX_SIZE = 8; // "[ERROR] "
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Dec 13 15:40:45 GMT 2024
    - 17.5K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java

                            cause = cause.getCause()) {
                        logger.error("Caused by: {}", cause.getMessage());
                    }
                }
            }
        }
    
        public static String formatTimestamp(TemporalAccessor instant) {
            return DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(instant);
        }
    
        public static String formatDuration(Duration duration) {
            long days = duration.toDays();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Feb 10 15:02:53 GMT 2025
    - 6.8K bytes
    - Click Count (0)
Back to Top