linux watch log file code example
Example 1: linux show log file real time
$ sudo tail -f /var/log/apache2/access.log
Example 2: debug.log
Debug.Log("Whatever you want your output debug console to display in Unity");
// can take all types of values.
// and don't forget the semi-colon.
Example 3: print loggibng.info to file
import logging.config
if __name__ == '__main__':
logging.config.fileConfig(path.normpath(loggerConfigFileName))
mylogger = logging.getLogger('Admin_Client')
msg='Bite Me'
myLogger.debug(msg)
myLogger.info(msg)
myLogger.warn(msg)
myLogger.error(msg)
myLogger.critical(msg)
logging.shutdown()