Menu

#5 use of logging

open
8
2008-06-25
2008-03-16
No

Some code may enefit from

import java.util.logging.Level;

Discussion

  • Gregor von Laszewski

    Logged In: YES
    user_id=226052
    Originator: YES

    Many of the System.out may need to be replaced

     
  • Gregor von Laszewski

    • assigned_to: nobody --> laszewsk
     
  • Nobody/Anonymous

    Logged In: NO

    A command

    logging -level 1

    or debug -level 1

    needs to be created to allow for eay debugging

    On Tue, Apr 8, 2008 at 3:05 AM, Gregor von Lazewski <laszewski@gmail.com> wrote:
    Why are we not using logging for this:

    errMsg = ">>> WARNING: Did not find \"" + runJobFile.getAbsolutePath() + "\""; // TODO - exit?

    such as

    errorMessage = "Did not find \"" + runJobFile.getAbsolutePath() + "\""; // TODO - exit?

    logging.warning(errorMessage)

    Also, I am not sure what the purpose of this is:

    System.err.println();
    + System.err.println(errMsg);
    + System.err.println(">>> USE THE PROGRAM AT YOUR OWN RISK!");
    + System.err.println();

    Are we telling the user not to use the program, or are we indicating that the program is under development and that this is some

    logging.debug("THIS FEATURE HAS NOT YET PASSED THE UNIT TESTS")

    ?

    Gregor von Lazewski
    Rochester Institute of Technology
    102 Lomb Memorial Drive
    Rochester, NY 14623
    Cell: (585) 298 5285
    Email: laszewski@gmail.com

     
  • Gregor von Laszewski

    • labels: --> old-gridshell
     

Log in to post a comment.

MongoDB Logo MongoDB