winnitron / WinnitronLauncher

The official Winnitron launcher! The meat and potatoes of the Winnitron.
winnitron.com
MIT License
34 stars 7 forks source link

Remote logging service #64

Closed aaronklaassen closed 7 years ago

aaronklaassen commented 7 years ago

I'm trying out loggly.com, since they've got a Unity example.

Rather than just writing debug messages to disk, also send them to this service so I can look at them without having to go down to where the machine lives.

mrmwiebe commented 7 years ago

You know about my custom "dbug" method right? You should be able to put a call to this logger in that function and instantly have everything logging. Also where would i get access to loggly?

aaronklaassen commented 7 years ago

@mrmwiebe Yeah this is already magic, actually - that Application.logMessageReceived += HandleLog line adds the handler to the logMessageReceived event, so that all calls to Debug.Log also send the message to Loggly (in addition to default behavior). I sent you an account invite.

And yeah I've been meaning to go through and route all those calls to dbug but haven't yet. A different PR. This one will work either way.

mrmwiebe commented 7 years ago

Oh it's a delegate! Nice. Probably could make dbug nicer using that eventually.