Code example for Timestamp

Methods: toString

0
    /** 
     * Configure from <code>LogManager</code> properties. 
     */ 
    private void configure() { 
 
        Timestamp ts = new Timestamp(System.currentTimeMillis());
        String tsString = ts.toString().substring(0, 19);
        date = tsString.substring(0, 10);
 
        LogManager manager = LogManager.getLogManager();
        String className = FileHandler.class.getName();
         
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
         
        // Retrieve configuration of logging file name 
        directory = getProperty(className + ".directory", "logs");
        prefix = getProperty(className + ".prefix", "juli.");
        suffix = getProperty(className + ".suffix", ".log");
 
        // Get logging level for the handler 
Contextual code suggestions in your IDE  Get Codota for Java