mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
01.47.2007 d25ac250f9a24e4efcc8f9b6e19bc388796b551a
refs
author kenneth_suter <kenneth_suter@localhost>
Tuesday, May 1, 2007 23:47 +0200
committer kenneth_suter <kenneth_suter@localhost>
Tuesday, May 1, 2007 23:47 +0200
commitd25ac250f9a24e4efcc8f9b6e19bc388796b551a
tree 92c88a96fe8d94f1a22e86601bcef9f860af9763 tree | zip | gz
parent 1c351f77e54545459b14778898d13a0faa8ea449 view | diff
This code introduces creation of a log file in the system's temporary directory for detailed log messages that can be used by any of the quicksetup applications (install, uninstall, upgrade).  Right now logging if fairly meager but we should work on this soon.  This work is being done in anticipation of changes that Brian has suggested in reducing the verbosity of the quicksetup applications.  The idea is to put the details in the file and omit the messages in the progress panel details area (for instance messages about moving files around).

The file is enabled using static methods in QuickSetupLog. All that is necessary for applications that want to write to a log file is to call initLogFile() passing in a File object. This will need to be done differently for the CLI and GUI applications given the differences in how they are launched (see the changes to the Upgrader and UpgradeLauncher for details on this).

If the log file has been initialized, CLI application automatically print a message at the end of execution notifying the user of the log file. GUI applications need to manually call notifyListenersOfLog() to get the message to the details area of the progress panel.

6 files modified
1 files added
195 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/Launcher.java 28 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java 11 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/QuickSetupLog.java 88 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties 5 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java 14 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/upgrader/UpgradeLauncher.java 20 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java 29 ●●●●● diff | view | raw | blame | history