]> WPIA git - gigi.git/blobdiff - lib/jetty/org/eclipse/jetty/util/log/Log.java
updating jetty to jetty-9.2.16.v2016040
[gigi.git] / lib / jetty / org / eclipse / jetty / util / log / Log.java
index 91b61f9a64fb5c9bdbfde5394d9096e8b534cc33..b33b5f2b59010cbae2643d8ec3f8b61c8987945f 100644 (file)
@@ -1,6 +1,6 @@
 //
 //  ========================================================================
-//  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+//  Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
 //  ------------------------------------------------------------------------
 //  All rights reserved. This program and the accompanying materials
 //  are made available under the terms of the Eclipse Public License v1.0
@@ -20,7 +20,6 @@ package org.eclipse.jetty.util.log;
 
 import java.io.IOException;
 import java.io.InputStream;
-import java.lang.management.ManagementFactory;
 import java.lang.reflect.Method;
 import java.net.URL;
 import java.security.AccessController;
@@ -34,6 +33,7 @@ import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 
 import org.eclipse.jetty.util.Loader;
+import org.eclipse.jetty.util.Uptime;
 import org.eclipse.jetty.util.annotation.ManagedAttribute;
 
 /**
@@ -167,8 +167,6 @@ public class Log
                 return;
             __initialized = true;
 
-            final long uptime=ManagementFactory.getRuntimeMXBean().getUptime();
-
             try
             {
                 Class<?> log_class = Loader.loadClass(Log.class, __logClass);
@@ -185,7 +183,7 @@ public class Log
             }
 
             if (LOG!=null)
-                LOG.info(String.format("Logging initialized @%dms",uptime));
+                LOG.info(String.format("Logging initialized @%dms",Uptime.getUptime()));
         }
     }