Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ OpenLog problems(user error)
OpenLog problems(user error)
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Frumpalumpaguss
(3 posts) Bio
|
Date
| Tue 26 Jul 2016 03:32 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 27 Jul 2016 07:07 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Frumpalumpaguss
(3 posts) Bio
|
Date
| Reply #2 on Wed 27 Jul 2016 07:14 AM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Wed 27 Jul 2016 07:20 AM (UTC) |
Message
| Please post the exact line of code you are using to do this log opening. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Frumpalumpaguss
(3 posts) Bio
|
Date
| Reply #4 on Wed 27 Jul 2016 07:46 AM (UTC) |
Message
| 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("") | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #5 on Fri 29 Jul 2016 05:04 AM (UTC) |
Message
| Are you saying that file name is set up in the logging configuration? You can specify a filename in the OpenLog function:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,264 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top