
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi is it possible to reduce output of splitter on stdout? Most infos are IMHO useless for DAUs like me and shut be on stderr or in a logfile like mkgmap's tia Bernd -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlF9BXcACgkQwCMdlf933K9xlQCgoNYDX/NEAjMvcuimqFIFSvBi viQAn0BOh1tQKauTiHnW9V1o/bhNuhrC =zGGt -----END PGP SIGNATURE-----

Hi Bernd, I tried to implement a logging technique like in mkgmap, but I was not happy with it. My understanding is that stderr is for errors or important infos, nothing else. I agree, most of the information is useless for normal users but helpful when searching for errors. So, my understanding is that you should produce the log and keep it so that one (I) can analyse it if you are not satisfied with the result of splitter. Gerd Bernd Weigelt wrote
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi
is it possible to reduce output of splitter on stdout?
Most infos are IMHO useless for DAUs like me and shut be on stderr or in a logfile like mkgmap's
tia Bernd -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlF9BXcACgkQwCMdlf933K9xlQCgoNYDX/NEAjMvcuimqFIFSvBi viQAn0BOh1tQKauTiHnW9V1o/bhNuhrC =zGGt -----END PGP SIGNATURE----- _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/A-question-to-Splitter-tp5758838p5758840.html Sent from the Mkgmap Development mailing list archive at Nabble.com.

Am 28.04.2013 13:18, schrieb Bernd Weigelt:
is it possible to reduce output of splitter on stdout?
Most infos are IMHO useless for DAUs like me and shut be on stderr or in a logfile like mkgmap's
Hi Bernd, I'm sending stdout to a file lika splitter.log. Terminal stays clean and in case of an error I (or a dev) can take a look in the log. Henning

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 28.04.2013 13:38, schrieb Henning Scholland: Hi Henning
I'm sending stdout to a file lika splitter.log. Terminal stays clean and in case of an error I (or a dev) can take a look in the log.
Something like that? java -jar splitter.jar 2>&1 > splitter_log That should work on my system, but it never works with windows. IMHO it is better to use verbosity-levels to reduce the output, Most (Linux-)programs create an output on stdout only if an error happened. An example is the new output of '--check-styles', this is enough. | Found one style in /home/bernd/map_build/mystyles/bikemap_style | finished check-styles Sorry, i'm not a programmer, so i can't implement this. Bernd -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlF9F8kACgkQwCMdlf933K9KMQCgggl9WZwugqoWZvOM+qMiaeS8 ZDcAnjRqsPcAiKbFp1gLzJEPMVYe0vzH =L5gr -----END PGP SIGNATURE-----

On windows you would use java -jar splitter.jar ... > splitter.log 2> splitter.err Gerd
Date: Sun, 28 Apr 2013 14:36:25 +0200 From: weigelt.bernd@web.de To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] A question to Splitter
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 28.04.2013 13:38, schrieb Henning Scholland: Hi Henning
I'm sending stdout to a file lika splitter.log. Terminal stays clean and in case of an error I (or a dev) can take a look in the log.
Something like that?
java -jar splitter.jar 2>&1 > splitter_log
That should work on my system, but it never works with windows.
IMHO it is better to use verbosity-levels to reduce the output,
Most (Linux-)programs create an output on stdout only if an error happened. An example is the new output of '--check-styles', this is enough.
| Found one style in /home/bernd/map_build/mystyles/bikemap_style | finished check-styles
Sorry, i'm not a programmer, so i can't implement this.
Bernd
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlF9F8kACgkQwCMdlf933K9KMQCgggl9WZwugqoWZvOM+qMiaeS8 ZDcAnjRqsPcAiKbFp1gLzJEPMVYe0vzH =L5gr -----END PGP SIGNATURE----- _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Am 28.04.2013 14:36, schrieb Bernd Weigelt:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 28.04.2013 13:38, schrieb Henning Scholland: Hi Henning
I'm sending stdout to a file lika splitter.log. Terminal stays clean and in case of an error I (or a dev) can take a look in the log. Something like that?
java -jar splitter.jar 2>&1 > splitter_log
That should work on my system, but it never works with windows. No just java -jar splitter.jar > splitter.log
Works on Win and ubuntu for me. Henning

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 28.04.2013 14:42, schrieb Henning Scholland:
No just java -jar splitter.jar > splitter.log
thanks, that work for me, too Bernd -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlF9KMgACgkQwCMdlf933K/VKwCfcVXTlqXzZU/OgZ1B5SlTqcZU PIUAn2sF3roiP1TJ7675BQrMWgeZZ2HM =S/C6 -----END PGP SIGNATURE-----
participants (4)
-
Bernd Weigelt
-
Gerd Petermann
-
GerdP
-
Henning Scholland