lualogging icon indicating copy to clipboard operation
lualogging copied to clipboard

if fmt is table and has __tostring__ then use it

Open orian opened this issue 10 years ago • 1 comments

This makes logger behaviour more in sync with standard print function.

orian avatar May 20 '15 09:05 orian

just browsing through this...

There is no __tostring__ functionality in Lua, that must be some non-standard implementation. There only is the __tostring metamethod that can be put on a metatable. And that metamethod is already supported, as the logger in the end falls back on a tostring call which will invoke the __tostring method.

So this should not be merged imo.

Tieske avatar Jan 10 '20 08:01 Tieske