Author Topic: Logging format in Steel Blue  (Read 2368 times)

Funki Grimalkin

  • Traveller
  • *
  • Posts: 13
    • View Profile
Logging format in Steel Blue
« 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)
Meow & Regards !
Funki Grimalkin

Jonerian

  • Hydlaa Resident
  • *
  • Posts: 102
  • Jonerian Cruentis
    • View Profile
Re: Logging format in Steel Blue
« Reply #1 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).



ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: Logging format in Steel Blue
« Reply #3 on: March 11, 2008, 02:47:23 pm »
Use wordpad.
We're not evil. We're simply amazing.

Quq Leque

  • Hydlaa Resident
  • *
  • Posts: 70
    • View Profile
    • www.thewarriorsguild.nl
Re: Logging format in Steel Blue
« Reply #4 on: March 11, 2008, 04:59:51 pm »
can't use wordpad while IG, user write issues :) error error

Funki Grimalkin

  • Traveller
  • *
  • Posts: 13
    • View Profile
Re: Logging format in Steel Blue
« Reply #5 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.
Meow & Regards !
Funki Grimalkin

Durwyn

  • Hydlaa Citizen
  • *
  • Posts: 301
    • View Profile
    • Athénée Royal Jean Rey Couvin
Re: Logging format in Steel Blue
« Reply #6 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
http://arjrcouvin.jimdo.com/
Athénée Royal Jean Rey Couvin

Zan

  • Veteran
  • *
  • Posts: 1944
  • Just a regular guy, with an irregular soul
    • View Profile
    • Photography
Re: Logging format in Steel Blue
« Reply #7 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.
« Last Edit: March 12, 2008, 07:25:57 pm by Zan »
Zan Drithor, Member of the Vaalnor Council
Tyrnal Relhorn, Captain of the Vaalguard
Thromdir Shoake, Merchant
Giorn Kleaver, Miner.

Grayne Dholm, Follower of Dakkru

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: Logging format in Steel Blue
« Reply #8 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 ;)
We're not evil. We're simply amazing.

Jonerian

  • Hydlaa Resident
  • *
  • Posts: 102
  • Jonerian Cruentis
    • View Profile
Re: Logging format in Steel Blue
« Reply #9 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 and 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.

Prolix

  • Guest
Re: Logging format in Steel Blue
« Reply #10 on: March 12, 2008, 06:10:08 am »
You might find this helpful.

Kemex

  • Traveller
  • *
  • Posts: 24
  • - If can be done, then i will code it -
    • View Profile
Re: Logging format in Steel Blue
« Reply #11 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.

  • Read your log file
  • Backup your log file

Key Benefits
  • It's Java Based (6), so Cross plattaform  \\o// (the only thing that you will need it's the Java SE Rutime as well )
  • All the benefits that you have reading a sorted Log File

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


  • Colored Text
  • Search function
  • Tabs to Split the information (NPC's, Chat , Group , Auctions, System
  • SQLite 3 Implementation to store the logs (so to avoid log file dependence's when u load )
  • Tree to Split the log info by Date/Hour of Login[/lit]
    • Anything that you can suggest  :)

    How can you help with this project?
    Well, im  currently needeing the following:

    • A complete list of all's NPC's that you know in the game
    • Some Motivation[/i]
    Aswers? Suggest? Contributions? pleas send it to: kemexmiraz@gmail.com

    *edit*

    The promises are Promises....
    Here is!!
    http://hydlaa.com/smf/index.php?topic=32274.msg371243#msg371243
« Last Edit: April 25, 2008, 04:37:10 am by neko kyouran »