﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13318	Clean up program startup (parameters, logging)	michael2402	team	"I cleaned up the `MainApplication` class more.

Things included:
- A new logging class with log level constants
- A new class to parse the command line arguments
- Some cleanup in the initialization tasks

I wrote a new class to log the warning/error messages. The class basically does what main did. But it also traces the source of the log call (as good as the VM allows us to). main is relaying all log calls. So currently you only get messages like (format can be changed):
{{{
Aug 11, 2016 3:15:04 PM org.openstreetmap.josm.Main info
INFORMATION: Erweiterung 'ImportImagePlugin' wird geladen (Version 32584)
}}}

We have two solutions here:
1. Ignore the calls from main, use the method that called Main.warn
1. Deprecate all `Main` logging methods. This will remove over 200 lines from that class.

I prefer option 2, but it will require a lot of changes to existing source code (but most calls will be search + replace). Stats:
{{{
Main.error  325
Main.warn   353
Main.info   109
Main.debug  175
Main.trace  147
}}}

There are currently 624 files depending on Main for various reasons. We may reduce that dependency by approx 100 files with this."	enhancement	closed	normal	16.08	Core		fixed	gsoc-core	Don-vip bastiK stoecker
