Benjamin Chrétien

Results 85 comments of Benjamin Chrétien

Hi, https://github.com/mlopezr/node-red-contrib-matrixbot could provide some hints on how to do this (unmaintained POC that lacks a lot of features, but still).

I managed to implement this feature: if the list length is set to 0, the property is treated as a variable-length list, stored as a `std::vector`. I also added CMake...

I'm still working on this, I fixed some more issues. For example, we might want to read face data only, thus skipping vertex elements entirely, which was not supported apparently.

Another possibility would be to use Boost's logger, since Boost is already a dependency. But then we can also make the Boost logger support optional.

I think that `Boost >= 1.48` is required to install the [former library](http://torjo.com/log2/), so it would just be another dependency. I don't know if there's some APT packages for it...

Some Windows users (poke @aescande) would also like to see the dependency made optional (or removed), to make Windows compilation easier. I guess we could wrap the `log4cxx` calls in...

Ok, this is more or less the case in `core/debug.hh`, so this should be even easier than expected.

I guess we need at least `debug`, `info` and `error`. With static pointers to functions, users could log `info` to a file and error to `stderr` for instance.

We can consider something like: ``` cpp // Register logging functions registerLogger (INFO, ...); registerLogger (ERROR, ...); ... // Log some information log (INFO, "something amazing happened"); ```

We can also have multiple logger instances defined by some identifier (e.g. string such as `"roboptim.core"`). ``` cpp getLogger ("roboptim.core").log (INFO, "log message"); ``` This seems to be what log4cxx...