#NEWLINE# def setupPrivateLogs( self , privateLogDir ) : #NEWLINE# #INDENT# 'Sets up a private /var/log directory for the node\n           privateLogDir: None/True for default source, else path for source' #NEWLINE# if isinstance ( privateLogDir , bool ) : #NEWLINE# #INDENT# if ( privateLogDir is False ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# privateLogDir = ( '/var/log/mininext/%s' % self . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not isinstance ( privateLogDir , basestring ) ) : #NEWLINE# #INDENT# raise Exception ( 'Invalid parameter for privateLogDir\n' ) #NEWLINE# #UNINDENT# #UNINDENT# logPathProperties = PathProperties ( path = privateLogDir , perms = getObjectPerms ( '/var/log' ) , create = True , createRecursive = True , setPerms = False ) #NEWLINE# logMount = MountProperties ( target = '/var/log' , source = logPathProperties ) #NEWLINE# self . setupMountPoint ( logMount ) #NEWLINE# self . hasPrivateLogs = True