[brailleblaster] Re: Debug configuration setting. Re: Re: BrailleBlaster in command console windows 7

  • From: "Michael Whapples" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "mwhapples@xxxxxxx" for DMARC)
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Tue, 15 Jul 2014 17:41:22 +0100

Hello,
Logging APIs can be so much more though.

To use the java.util.logging package implementation of logging as a example: Each logger can be registered with different handlers, the different loggers can be configured to have different levels, I think even the different handlers can be configured to accept different log level messages.

This means that the different parts of BrailleBlaster need not be logging to the same locations, they need not be logging at the same level, etc.

Obviously the more complicated the logging configuration iis the more difficult it is to store it in a settings file and have options for controlling it. Therefore it may be worth using the standard logging API configuration file (I think for java.util.logging this is a properties file).

Michael Whapples
On 15/07/2014 15:39, John J. Boyer wrote:
There is a debug configuration setting. Right now the only valyes are
yes and no, with no being the default. It could be expanded to accept
the various log levels. A logging calback would then have to be added.
The default would remain no. In this case only fatal errors would be
printed, such as errors in parsing or missing tables or files.

The present setup may be good for developoers, but it certainly is not
good for users.

John

On Tue, Jul 15, 2014 at 07:12:48AM -0400, Keith Creasy wrote:
Yes, I agree.


Michael, can we fix this? It really is too verbose by default.


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
Sent: Monday, July 14, 2014 7:39 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: BrailleBlaster in command console windows 7

It seems to me that logging should be set to only report errors by default.
I don't want to use the latest liblouisutdml to translate anytything of
really interesting length, such as the books I get from Bookshare.

John

On Mon, Jul 14, 2014 at 10:01:55PM +0100, Michael Whapples wrote:
Hello,
Logging output I believe is going to standard error (stderr). Try
using 2> instead of > in your redirection.

Michael Whapples
On 14/07/2014 21:34, Cearbhall O'Meadhra wrote:
Keith,

I think it would be best in time to manage the logging. However,
there will be times when it is useful again. For that reason, I would
like to find a way to pipe it for now.

I have tried the command line:
        java -jar brailleblaster.jar translate %bPath%%inputFile%   >
brailleblst.log


but this does nothing1

I imagine the two input and output parameters are making the piping
irrelevant to the brailleblaster.jar call. Any ideas?


All the best,

Cearbhall

M: 0833323487  T: (01) 2864623  em: cearbhall.omeadhra@xxxxxxx



---------------------------------------------------------------------
-------
-----
I use the free version of Spam Reader to get rid of spam. The
Professional version doesn't have this disclaimer in outgoing emails.
Try Spam Reader (http://www.spam-reader.com) for free now!
-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Keith
Creasy
Sent: 14 July 2014 20:01
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: BrailleBlaster in command console
windows 7

Hi Cearbhall.

That is all logging from LibLouisUTDML and is telling you what
actions and styles are being applied. We really do need to turn down
the default logging though because that's a bit much most of the time.

Keith


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Cearbhall
O'Meadhra
Sent: Monday, July 14, 2014 2:50 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: BrailleBlaster in command console
windows 7

Hi Larry,

Thanks for the welcome.

I wonder if you can help me to understand what is being displayed on
the command.cmd window when I run brailleblaster in batch mode under
Windows 7?
Here is a typical output screen:

Administrator:  brailleBlaster process Assistant 7ie keybo>d71 x
copies :at y type 6! _+beep.txt_: file4 Finish end_style Begin
start_style Finish start_style Begin insert_translation Begin
end_style Begin insert_translation
   ,3trol-;,z w 5d ! 8copy0
process4
Finish end_style
Begin start_style
Finish start_style
Begin insert_translation
Begin end_style
Begin insert_translation
   7,3trol-;,g wd probably n "w
if y type x 9 say ,notepad7
Finish end_style
Begin start_style
Finish start_style
Begin end_style
Begin insert_translation
Finish end_style
---------------------------------------------------------------------
-------
-----

It looks like some sort of trace!
  I clear the screen after the brailleBlaster program has finished so
that my batch menu appears clearly. However, the output above appears
once the program is running and so I wonder if I can pipe it to a
file, if it is important to retain it, or if I can suppress this
output by a setting in brailleBlaster?


All the best,

Cearbhall

M: 0833323487  T: (01) 2864623  em: cearbhall.omeadhra@xxxxxxx







--
John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities





Other related posts: