William Roberts
William Roberts
I guess we could take the changes to the project files. For the gitignore you can add it to `.git/info/exclude`. Everyone who works on it can just drop it in...
@joholl @AndreasFuchsSIT something to guide discussion with
> Agreed with @joholl > > The big problem I see here however is when you bind against two of the tss2 libraries at the same time. > I.e. we...
> @joholl I was referring to a custom fd > stderr, e.g. `fd = createPipe(); setenv("TSS2_LOGFILE", "fd:%i" % fd);` > > Could you explain the weak symbol thing and how...
> I agree that weak symbols are not the ideal solution in terms of portability. > > @williamcroberts > > > That [Option 1.] would then break it and the...
> @williamcroberts I'd favor the more complex callbacks as well > > The thing about this option 2 is that if the tss is used from two different places (e.g....
> > But maybe if we dlopen `libtss2-logging.so`, it could work? I think this needs to be experimented with. Generally its not wise to dlopen things because then explicit dependencies...
> A new idea from Peter: We could have a new Initialize method that takes the logHandler as a parameter. > That should also prevent the problem with an application...
> A new idea from Peter: We could have a new Initialize method that takes the logHandler as a parameter. > That should also prevent the problem with an application...
The ENV var tweaks the level, and if the message is to be logged it goes to the callback registered by the application or to the default stderr stream.