Mysteries/StdOutLog

From BF2 Technical Information Wiki
Jump to: navigation, search
a_debug = 1
class writer:
	def __init__(self, filename ):
		self.stream = open( filename, 'a+')

	def write(self, str):
		self.stream.write(str)
		self.stream.flush()
if a_debug: sys.stdout = sys.stderr = writer( 'stats_debug.log' )
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox