|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
|
|
|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Sun May 25, 2008 11:27 pm |
i'd like to turn on logging period, so that it display's exactly like it does from the mud, however... my last experience with this in zmud was... scary... =D
|
|
|
|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Sun May 25, 2008 11:42 pm |
A suggestion that, while not really html correct, could make HTML logging easier would simply make cmud, on creating the log start a <body bgcolor"#" text="#"> and when the log closes </body> and simply get the color codes from the default settings, for example my default color is 'silver' and background is black.
|
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon May 26, 2008 12:16 am |
I just manually change them, it's tedious but I don't know of another way. The html logger does seem to screw up some of the colors, and, the html is very messy.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed May 28, 2008 7:53 pm |
Since the logging can be turned off and on, and logging to an existing file appends to the existing file, there isn't any way for CMUD to generate the BODY tag itself. Otherwise you'd get multiple BODY sections and then your browser or other viewer would only show the first part of the log file. You just need to do this yourself in whatever file you are pasting the HTML log data into.
If HTML is screwing up the colors, then you need to create a new post and give me the exact details of what isn't working. I can't read your mind!
Also, if you say the "HTML is very messy", that doesn't give me much to go on. The HTML logger uses embedded style information because the FONT tag is deprecated in HTML and shouldn't be used. And because CMUD allows you to append multiple sessions to a single log file, it cannot use global style tags either. So it might be "messy", but it is standard HTML. You can suggest an alternative if it is valid HTML that would work in this situation. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu May 29, 2008 3:01 am |
Charbal's plugin mentioned at the end of the log files that the html standard says you don't need to close the body or html tags at the end of the file, which is nice for appending. I don't know if that's a fact or not, but that's what it said. In that case, I wonder if it's not possible to check if the file exists before you start logging? It should be. If it does, and you're creating a file rather than appending, you can write out the body tags and header stuff. If it's not, you just start writing to the file again.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu May 29, 2008 3:27 am |
My point was that different sessions or windows might have different background colors, so that would entail multiple BODY tags.
I think maybe instead of using a BODY tag maybe I can enclose the entire log within a DIV tag and use the CSS styles to set it's default colors. I'll have to experiment with that. |
|
|
|
|
|