Jump to content
The simFlight Network Forums

Recommended way to log?


Clamb

Recommended Posts

Hi, another small question.

Is there a recommended way to combine the log from your DLL and mine into a single log, including the capability to select different logLevels?
Of course, I could parse the LogEventArgs.LogEntry to get the logLevel from this entry and pass it to my own logging class, but this doesn't seem very nice.

On the other hand, I also can't find of way of adding my own log into the DLL/FSUIPC log.

Best regards
Axel

Link to comment
Share on other sites

Quote

, I could parse the LogEventArgs.LogEntry to get the logLevel from this entry and pass it to my own logging class, but this doesn't seem very nice.

That's the only way to to it. That string (LogEventArgs.LogEntry) is the only thing I get from the WAPID dll as far as logging goes. The internal logging system is not exposed at all.

Quote

On the other hand, I also can't find of way of adding my own log into the DLL/FSUIPC log.

I don't know of any way for external programs to write to the FSUIPC log. 

The flight-sim eco-system is made up of many different bits of software, from different authors. Most have evolved over decades. It's inevitable that the pieces don't interact with each other as well as we might hope.

Paul

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.