Some information needed for advanced security system

Hello, Im new to this forum,
I have a few questions about the Ubunto Log files, i need to know where is the function that creates the log files, is it editable? and father more on which language the most of the server is typed and as well which language was used to create the logging function. Thanks :)