Modify

Opened 3 years ago

Closed 3 years ago

#20401 closed defect (invalid)

Messages WARNING and SEVERE not logged - show always up in console

Reported by: Hb--- Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report logging Cc:

Description

What steps will reproduce the problem?

  1. Start with java.exe -jar josm-latest.jar >logfile.txt
  2. Try to open a file named bogusfile to provoke a warning
  3. Accept the (does not exist) warning dialog box and close JOSM
  4. Notice in the console the line {{{WARNING: Warning - <html>Cannot open 1 file because ...}

What is the expected result?

Find the WARNING together with the INFO messages in the log file.

What happens instead?

Find only the INFO messages in the logfile.

Please provide any additional information below. Attach a screenshot if possible.

SEVERE messages are also affected.

The FINE debug messages are logged properly.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-01-16 21:50:09 +0100 (Sat, 16 Jan 2021)
Build-Date:2021-01-17 02:30:50
Revision:17464
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17464 en) Windows 7 64-Bit
OS Build number: Windows 7 Professional (7601)
Memory Usage: 489 MB / 3604 MB (334 MB allocated, but free)
Java version: 1.8.0_275-b01, Oracle Corporation, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1280×1024 (scaling 1.00×1.00)
Maximum Screen Size: 1280×1024
Best cursor sizes: 16×16→48×48, 32×32→48×48
VM arguments: [-Duser.language=EN]

Attachments (0)

Change History (2)

comment:1 by GerdP, 3 years ago

warnings and errors are written stderr, not stdout. See
https://stackoverflow.com/questions/1420965/redirect-windows-cmd-stdout-and-stderr-to-a-single-file
Try

java.exe -jar josm-latest.jar >logfile.txt 2>&1

comment:2 by Hb---, 3 years ago

Resolution: invalid
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.