# HG changeset patch # User David Barts # Date 1736706125 28800 # Node ID 8c6d6ad92aa1083d8982f9e178b82ff58ba8d865 # Parent c56a0747c25650c41b7a111494c7cc1f08d9bead Commit most recent changes. diff -r c56a0747c256 -r 8c6d6ad92aa1 .hgignore --- a/.hgignore Thu Apr 28 20:53:39 2022 -0700 +++ b/.hgignore Sun Jan 12 10:22:05 2025 -0800 @@ -1,4 +1,9 @@ ~$ \.bak$ -^work/ -^bundles/ +\.class$ +\.dylib$ +\.o$ +^\.idea/ +^target/ +^out/ +^#.*#$ diff -r c56a0747c256 -r 8c6d6ad92aa1 src/name/blackcap/clipman/Files.kt --- a/src/name/blackcap/clipman/Files.kt Thu Apr 28 20:53:39 2022 -0700 +++ b/src/name/blackcap/clipman/Files.kt Sun Jan 12 10:22:05 2025 -0800 @@ -55,6 +55,7 @@ } val PROP_FILE = File(PF_DIR, SHORTNAME + ".properties") val LOG_FILE = File(LF_DIR, SHORTNAME + ".log") +val ERR_FILE = File(LF_DIR, SHORTNAME + ".err") /* make some needed directories */ diff -r c56a0747c256 -r 8c6d6ad92aa1 src/name/blackcap/clipman/Main.kt --- a/src/name/blackcap/clipman/Main.kt Thu Apr 28 20:53:39 2022 -0700 +++ b/src/name/blackcap/clipman/Main.kt Sun Jan 12 10:22:05 2025 -0800 @@ -217,6 +217,7 @@ /* entry point */ fun main(args: Array) { + setUpErrors() LOGGER.log(Level.INFO, "beginning execution") if (OS.type == OS.MAC) { System.setProperty("apple.laf.useScreenMenuBar", "true") @@ -226,3 +227,10 @@ Application.initialize() } } + +private fun setUpErrors() { + val ps = java.io.PrintStream( + java.io.FileOutputStream(ERR_FILE), true, CHARSET) + System.setOut(ps) + System.setErr(ps) +}