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

kenneth_suter
01.47.2007 2155def10e32885ae6f05fa8556bd9099c400f39
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
commit2155def10e32885ae6f05fa8556bd9099c400f39
tree 47f2748f065ed364b4fe212ac99182fa6eeb5885 tree | zip | gz
parent 3e41beab87e8fbb48ba422254d2211df13da010d 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.

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