[SOLVED]Saving Logs Into A Text Document
[SOLVED]Saving Logs Into A Text Document
This a big step for me for creating songs for Zand Band. I figured out how to place notes easier for any song using simple ACS codes with the delay's being saved in the console. With all that done, how do I save whatever is in the console into a text document? I believe it is the console command "LogFile", as seen on the ZDoom Wiki, but where does it save it exactly? Or if there's a way to manually save whatever is in the console, please post here. This is the only thing I have left to do.
Last edited by Fabysk on Mon Nov 03, 2014 3:10 am, edited 1 time in total.
- Slim
- Zandrone
- Posts: 1112
- Joined: Sat Mar 16, 2013 7:11 am
- Location: Zero Space
- Clan: Can't fit it in here
- Clan Tag: -=FSR=-
- Contact:
RE: Saving Logs Into A Text Document
Code: Select all
logfile "C:\place\place2\place3\zandylog.txt"
Last edited by Slim on Sun Nov 02, 2014 11:49 pm, edited 1 time in total.
RE: Saving Logs Into A Text Document
It does create the text file, but only saves the time and location of the fileSuicide Slim wrote:Code: Select all
logfile "C:\place\place2\place3\zandylog.txt"
- ibm5155
- Addicted to Zandronum
- Posts: 1641
- Joined: Tue Jun 05, 2012 9:32 pm
- Location: Somewhere, over the rainbow
RE: Saving Logs Into A Text Document
It'll create a text file, with sasves time and location AND all the print and log commands that you made (and with that you can create a generic eicar virus too xD)
edit: Idk if hudmessage is stored too...
edit: Idk if hudmessage is stored too...
Last edited by ibm5155 on Mon Nov 03, 2014 1:48 am, edited 1 time in total.
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
RE: [SOLVED]Saving Logs Into A Text Document
Please share your solution for the benefit of others who have the same question in the future.
"For the world is hollow, and I have touched the sky."
RE: [SOLVED]Saving Logs Into A Text Document
I'll try my best from memory. I did so many wrong turns in getting this to work.Empyre wrote: Please share your solution for the benefit of others who have the same question in the future.
- Open up the Zandronum folder from this file path C:\Users\(Your User Name)\AppData\Local\VirtualStore\Program Files (x86)\Zandronum. The file path should be something like this. This is where I found mine.
- Create a text file and name it "autoexec.cfg"
- Within the text file, type this in "logfile textFileName.txt"
- Now, every time you play a mod that you have created, it will start logging everything within the console as soon as the mod starts up.
Code: Select all
addmenukey "Save Log" Save_Log
aliasSave_Log "logfile C:\Users\(Your User Name)\AppData\Local\VirtualStore\Program Files (x86)\Zandronum\autoexec.cfg"
defaultbind M Save_Log
This is what I did to do file logging for single player. I am not 100% sure if this method of offline logging will work for other users. I did this for Zand Band purposes, to create songs easier.
- Slim
- Zandrone
- Posts: 1112
- Joined: Sat Mar 16, 2013 7:11 am
- Location: Zero Space
- Clan: Can't fit it in here
- Clan Tag: -=FSR=-
- Contact:
RE: [SOLVED]Saving Logs Into A Text Document
Yeah, my bad for not being specific in my first post here, I meant to say, logfile saves from when it's executed to when it's either executed again or Zandronum is closed. For all logging benefits and dodging forgetfulness, I have it activate in autoexec and stop when Z& is closed, plenny of singleplayer and online logs filled with obituaries and console commands/binds with echo. Someday I'll have to clean those out because they clutter so much.
RE: [SOLVED]Saving Logs Into A Text Document
It's all good Slim. But there is something else that bothers me with the logging. Is it possible to remove the timestamps of the logs?Suicide Slim wrote: Yeah, my bad for not being specific in my first post here, I meant to say, logfile saves from when it's executed to when it's either executed again or Zandronum is closed. For all logging benefits and dodging forgetfulness, I have it activate in autoexec and stop when Z& is closed, plenny of singleplayer and online logs filled with obituaries and console commands/binds with echo. Someday I'll have to clean those out because they clutter so much.
- Slim
- Zandrone
- Posts: 1112
- Joined: Sat Mar 16, 2013 7:11 am
- Location: Zero Space
- Clan: Can't fit it in here
- Clan Tag: -=FSR=-
- Contact:
RE: [SOLVED]Saving Logs Into A Text Document
I wish I knew, they are a bit cumbersome at times. But I don't think it's possible.Fabysk wrote: Is it possible to remove the timestamps of the logs?
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: [SOLVED]Saving Logs Into A Text Document
Yes, set "sv_logfiletimestamp 0".Fabysk wrote: It's all good Slim. But there is something else that bothers me with the logging. Is it possible to remove the timestamps of the logs?
RE: [SOLVED]Saving Logs Into A Text Document
Thank you so much Torr. This saves me a lot of timeTorr Samaho wrote: Yes, set "sv_logfiletimestamp 0".
- Slim
- Zandrone
- Posts: 1112
- Joined: Sat Mar 16, 2013 7:11 am
- Location: Zero Space
- Clan: Can't fit it in here
- Clan Tag: -=FSR=-
- Contact:
RE: [SOLVED]Saving Logs Into A Text Document
Eh? Is there a way for clientside logs too? Since sv_ commands are executed by server/rcon only, if there's a clientside version of this I'd love to see it.Torr Samaho wrote:
Yes, set "sv_logfiletimestamp 0".
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: [SOLVED]Saving Logs Into A Text Document
The prefix of the flag is misleading. It should affect all files written by the logfile command, no matter if they are written by the server or the client.Suicide Slim wrote: Since sv_ commands are executed by server/rcon only, if there's a clientside version of this I'd love to see it.




