OpenLog problems(user error)

Posted by Frumpalumpaguss on Tue 26 Jul 2016 03:32 PM — 6 posts, 20,970 views.

#0
Hey folks. So, its been a bit of a learning curve, but I've managed to teach myself to log pretty much everything that I do in one of the MUDs I play. That said, I've run into an issue:

I basically leave my computer, and thus my game, on 24/7. I do this so I can log everything and see what happens while I"m away. I noticed a few days ago that logs for July were missing. Upon further inspection, I noted they weren't missing, just that the logs were all bundled up, meaning that instead of opening a new file every day, it was putting multiple days into each file.

I read a post that involved using OpenLog/CloseLog, which I've set up. My problem is this: I can't get it to Open the log into my log folder that I have set up, and I can't get it to log said new logs in HTML. What arguments do I need to include with OpenLog("")?

Thanks in advance.
Australia Forum Administrator #1
I smiled when I read that. So the client didn't crash once in the entire month of July? That's nice. I wonder how many clients can do that?

Anyway, please show what you are attempting when you do an OpenLog.

The argument should be the log file name, which if set up correctly would log to the chosen directory.
#2
Currently, I have my logs all going to a dropbox folder I have set up for it. I had originally set it up to log automatically with the following directory:

C:\Users\me\Dropbox\LotJ\logs\%b%d%Y.html

When I was testing my timer, I attempted to use %b%d%Y.html. It saved it with that exact title, not the date, saved it to the game folder, and the html was garbled and off. I have no issues with it logging to txt, even if it is visually more boring, but I can't get it to log to the above directory with the date.
Australia Forum Administrator #3
Please post the exact line of code you are using to do this log opening.
#4
Wouldn't you know it, when it fired at midnight EST, it worked properly. Still only in txt though, since the HTML version looks garbled and incorrect. Regardless, the timer is simple:

CloseLog()
OpenLog("")
Australia Forum Administrator #5
Are you saying that file name is set up in the logging configuration? You can specify a filename in the OpenLog function:

Template:function=OpenLog
OpenLog

The documentation for the OpenLog script function is available online. It is also in the MUSHclient help file.