OK, I was not articulating my need clearly, my fault.
I am making a mod SubdueAnimals based on Roamty's work but expanding it a bit adding new units and new buildings. Initially it is for Rise of Mankind but it may be usable in other mods.
It uses "metadata" which the modder enters in the init code to say what animal is subdued as what subdued animal.
What I want to do is write some logging error messages from the python if there is problems with this metadata. That way I can drop invalid rules, not breaking the game but providing feedback about problems.
While I am building the mod (and others) I would like to put tracing messages in the log also.
So basically my questions are:-
- Does BUG provide a means of writing to logs?
- Does it allow me to specify a log?
- What is usually written to which log files?
- How do I write to a log file?
OR
- Is there a place which covers log file usage?
I have been slack and not built one for myself.