comparison src/name/blackcap/clipman/Files.kt @ 47:19d9da731c43

Recoded; cleaned up root namespace, removed race conditions.
author David Barts <n5jrn@me.com>
date Sun, 12 Apr 2020 14:31:06 -0700
parents d14298ef8b0a
children c8ec2d7af3fb
comparison
equal deleted inserted replaced
46:88066346f129 47:19d9da731c43
74 load(it) 74 load(it)
75 } 75 }
76 } 76 }
77 77
78 val LOGGER = run { 78 val LOGGER = run {
79 System.setProperty("java.util.logging.SimpleFormatter.format",
80 "%1\$tFT%1\$tT%1\$tz %2\$s%n%4\$s: %5\$s%6\$s%n")
79 LF_DIR.makeIfNeeded() 81 LF_DIR.makeIfNeeded()
80 Logger.getLogger(LONGNAME).apply { 82 Logger.getLogger(LONGNAME).apply {
81 addHandler(FileHandler(LOG_FILE.toString()).apply { 83 addHandler(FileHandler(LOG_FILE.toString()).apply {
82 formatter = SimpleFormatter() }) 84 formatter = SimpleFormatter() })
83 level = Level.CONFIG 85 level = Level.CONFIG