dodexahedron / SE-Community-Mod-API

Space Engineers Community Modding API
GNU Lesser General Public License v3.0
8 stars 2 forks source link

Multi Instance Log problem #9

Closed emawind84 closed 9 years ago

emawind84 commented 9 years ago

Problem with more than one instance of SESE. In some early release the log was in the world save folder but now is in the DedicatedServer64 and cause quite a problem for me, I can't use more than one instance without getting these exceptions.

se_issue01

I have two SE instances, discoworld and discoworld_survival; discoworld_survival is looking for SpaceEngineers-Dedicated.cfg in the folder discoworld when it should read the file inside discoworld_survival folder.

se_issue02

Here you can see how I made the link for SE on the left and the start of the process on the right se_issue03

The log should not be here I think but in the instance folder. se_issue04

dodexahedron commented 9 years ago

Agreed that's not a good thing. The behavior is inconsistent on my machine, but nobody has complained until now, so I hadn't bothered looking into it yet. I'll have a look as soon as I can. Until then, if you copy your SpaceEngineers folder and run each instance from a unique folder, you'll at least be able to get back up and running.

emawind84 commented 9 years ago

I didn't think about that thank you I'll try.

dodexahedron commented 9 years ago

I'll try to have a look at why this is happening, tonight. I've been considering ditching the logs as they are, anyway, and using nlog or something more configurable/standard, anyway. Maybe this will be the motivation I need to go ahead and bite the bullet and do that.

dodexahedron commented 9 years ago

I'm just too beat to get too into tracing how the log paths are figured out, tonight. I'm thinking I'm going to go ahead with a conversion to nlog. Then you'll be able to log whatever you want to wherever you want. Making it multi-instance friendly won't be THAT hard, but it may require a small amount of configuration on your part. We'll see what I end up with.

emawind84 commented 9 years ago

Thank you for your support on this project.

dodexahedron commented 9 years ago

I've been working on replacing the logging system with nlog. So far, it's going well. There are just a lot of places it needs to work, and work correctly. I don't think it will be ready for this thursday's update, since I just don't have the time to do it before then, but good progress is being made. Stay tuned.

dodexahedron commented 9 years ago

11 is complete, which should also take care of this.

If you have issues with the new logging system, please open a new issue and give me as much detail as you can.