Fix possible range error in logging.d.
Playing with a new parameter parser.