Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sun Jun 19, 2011 9:37 am   

Logging
 
are log files supposed to go in the main CMUD folder under programs instead of in the my games folders?
_________________
Discord: Shalimarwildcat
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: Sun Jun 19, 2011 2:53 pm   
 
Whenever I start logging from the menu (alt-F,L or ctrl-L) or with #LOG using no arguments, cMUD opens a dialogue prompting me for where to save the log. If I use the #LOG command without specifying folder with the filename, then it defaults to ..\My Documents\My Games\CMUD\(session name)\(filename).txt

Note that if I've already logged during the session #LOG with no arguments will turn off logging or start appending to the previously specified file.

I hope this helps!
_________________
.geniusclown
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sun Jun 19, 2011 3:28 pm   
 
That's how I thought it was supposed to work,but it is not for me.
They are going to the CMUD folder under programs.

#EVENT onConnect {#LOG %concat(%sessionid, "-", %char, " ", %time(yyyy-mm-dd h:mm), ".txt")}
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sat Jul 23, 2011 1:03 am   
 
Since moving up to Windows 7, the above code either truncates the name to just %sessionid.txt or throws up an error

ERROR creating log: Mud-Charname 2011-07-22 19:57.txt
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat Jul 23, 2011 3:47 pm   
 
Make sure when you install CMUD you selected the %DOCUMENTS% option for the location of your User Session Data Files. If that is set to Program Files, then it's not going to work on Windows 7 (which prevents files, like log files, from being written to the Program Files directory).

On my system here it stores the log files in the same directory as the *.PKG session file.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sun Jul 24, 2011 2:16 am   
 
Yeaa, the files go to the right spot on windows 7, but i cant get the files named the way i want

#EXEC {#LOG "%sessionid-%char %time(yyyy-mm-dd h:mm)"}

leaves off the date info, a cannot find a way to preserve a long file name with spaces in it
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Jul 24, 2011 2:38 am   
 
#LOG %concat(%sessionid,"-",%char," ",%time(yyyy-mm-dd h:mm)) works for me.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sun Jul 24, 2011 3:20 am   
 
and i get the error from two posts up with that
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sun Jan 22, 2012 5:13 pm   
 
Anyone able to get this to work yet?

Using the above:
ERROR creating log: FancyMUD-Shalimar 2012-01-22 11:06.txt


Using: #LOG hi
Log is on: C:\Users\Shalimar\Documents\My Games\CMUD\FancyMUD\hi.txt

Would the error be the fact that name has spaces hyphens or colons?
I thought such naming restrictions were long gone.
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Jan 22, 2012 6:00 pm   
 
According to Microsoft, colons aren't allowed in file names. It's easy to test this, actually - if you open notepad and try to save a file with a colon in the name, it will say the file name is invalid. That still doesn't explain why I don't get the error you get, though. I used the code from my post above and it says Log is on: session-char 2012-01-22 12:55.txt, however if I go look for that file, it turns out that the file name is actually being truncated at the colon. There must be some setting or maybe Windows version discrepancy, but either way, the colon is your problem.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sun Jan 22, 2012 6:08 pm   
 
Yup, thanks.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net