PlaneShift

Support => Complaint Department => Topic started by: Funki Grimalkin on March 11, 2008, 02:19:54 pm

Title: Logging format in Steel Blue
Post by: Funki Grimalkin on March 11, 2008, 02:19:54 pm
how things aren't the way they used to be !!

To start off, great work on the 0.4 release !!...generally.. \\o//

One minor bug/gripe is that, It appears that the logging file format has now changed in Steel Blue..
If I open my log file in Windows Notepad and few other viewers, it appears as

Line1[some garbage]line2[some garbage]Line3

Instead of (as in 0.3.xx)
Line1
Line2
Line3

It appears that the "\r\n" [line feed + form feed] is missing and instead only a "\n" [line feed] is being put at the end of a line.

At the moment, the logging file is HARD :( to read, would be nice if it goes back to the old (and standard) text file format.

Meow & Regards !
Funki Grimalkin

(I did trawl though the flyspray & the forums.. apologies if this is a known feature)
Title: Re: Logging format in Steel Blue
Post by: Jonerian on March 11, 2008, 02:34:22 pm
It appears that the "\r\n" [line feed + form feed] is missing and instead only a "\n" [line feed] is being put at the end of a line.
At the moment, the logging file is HARD :( to read, would be nice if it goes back to the old (and standard) text file format.

\r\n is NOT standard. It is what windows uses and takes up twice as much space than \n.

http://en.wikipedia.org/wiki/Newline

Just get a better editor than Notepad. I heard there is something like Notepad++ etc. I personally use vim (gvim on windows).

Title: Re: Logging format in Steel Blue
Post by: Caarrie on March 11, 2008, 02:35:01 pm
http://www.hydlaa.com/flyspray_upgrade/index.php?do=details&task_id=1159&histring=notepad
Title: Re: Logging format in Steel Blue
Post by: ThomPhoenix on March 11, 2008, 02:47:23 pm
Use wordpad.
Title: Re: Logging format in Steel Blue
Post by: Quq Leque on March 11, 2008, 04:59:51 pm
can't use wordpad while IG, user write issues :) error error
Title: Re: Logging format in Steel Blue
Post by: Funki Grimalkin on March 11, 2008, 05:32:38 pm
Agreed "\r\n" is more Window$ specific

But as a multi-platform app, PS can do \r\n in windows & \n for linux (and macos?)..
Makes life easier for users of the various flavours and is a real world solution.

I use araxis merge as a temporary (&/overkill) solution.
Title: Re: Logging format in Steel Blue
Post by: Durwyn on March 11, 2008, 05:34:18 pm
i sponsor my thread a bit if you permit >>  :P
http://hydlaa.com/smf/index.php?topic=31774.0
Title: Re: Logging format in Steel Blue
Post by: Zan on March 11, 2008, 06:39:24 pm
Microsoft Word or Open Office Writer both work nicely as well .. basically, use anything but notepad to open them and have decent formats.
Title: Re: Logging format in Steel Blue
Post by: ThomPhoenix on March 11, 2008, 11:25:42 pm
Microsoft Word or Open Office Word Writer both work nicely as well .. basically, use anything but notepad to open them and have decent formats.
Made a small correction ;)
Title: Re: Logging format in Steel Blue
Post by: Jonerian on March 12, 2008, 02:20:23 am
But as a multi-platform app, PS can do \r\n in windows & \n for linux (and macos?)..
Makes life easier for users of the various flavours and is a real world solution.
Thought about what happens if you use the same file with windows and linux? I do that and I am pretty sure others do that, too.

Like it was said in the bug-report: You can't use Notepad anyways after the logfiles get big and every decent (real world) editor has the ability to work with different newlines. The two most powerful text/code editors are Vi (http://en.wikipedia.org/wiki/Vi) and Emacs (http://en.wikipedia.org/wiki/Emacs) (There are good versions for Windows), but in the case you don't like either one, you will find another one quite easy and if you don't expect too much (quite possible, since you use Notepad ;-P) you might also stick with another one.
Title: Re: Logging format in Steel Blue
Post by: Prolix on March 12, 2008, 06:10:08 am
You might find this (http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=unix2dos) helpful.
Title: Re: Logging format in Steel Blue
Post by: Kemex on April 24, 2008, 03:21:09 pm
Hi, this night (im currently at work), i will leave available for download an alpha release (i just did it last night while the server shutdown, so i was in needed to read again what and NPC's Told me) of an offline Log viewer, so you will be able to do the following things.


Key Benefits

The following things its pending to implement ( this weekend i will do it).