Reputation: 16276
The task is to log into the same file from different languages (Java, C++ and Lua) to keep log records in chronological order. I'm thinking about network or syslog appenders so I can easily log from different languages. Log4j is the most popular format and using log4cxx I can support Java and C++. I found Log4Lua but seems it's dead.
What solution can you recommend?
EDIT:
I need this on both Linux and Windows
Upvotes: 4
Views: 444
Reputation: 14564
Probably your best bet is to write a small C++ dll that exposes the functionality you want, load it into your lua script, and call the C++ functions that do the logging calls from lua that way.
Upvotes: 3