Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.util.log.log Namespace Reference

Functions

def initClientLog
 
def initServerLog
 
def initServerLogToStdout
 
def initErrorLog
 
def initControllerLog
 

Variables

int MAXFILESIZE = 4
 
int NBACKUPS = 5
 
int TRACE = 5
 
string MODE_DEBUG = "debug"
 
string MODE_TRACE = "trace"
 
string MODE_PRODUCTION = "prod"
 
string fileFormat = "%(asctime)-20s - %(levelname)-7s - %(name)-15s: %(message)s"
 
string stdoutFormat = "%(levelname)-s, $BOLD%(name)-s$RESET: %(message)s"
 

Function Documentation

def cpc.util.log.log.initClientLog (   debug = False)
Initialize a client log: in this case, a log that only displays to 
   stdout.
def cpc.util.log.log.initControllerLog (   dir,
  controllerName = "" 
)
Initialize a controller logger. Returns a logger object
def cpc.util.log.log.initErrorLog ( )
Initialize the error log. Should log all errors, client or server.
def cpc.util.log.log.initServerLog (   log_mode = None)
Initialize a server log. This log outputs to the server log file 
   (usually ~/.copernicus/<hostname>/log/server.log).
def cpc.util.log.log.initServerLogToStdout (   log_mode = None)

Variable Documentation

string cpc.util.log.log.fileFormat = "%(asctime)-20s - %(levelname)-7s - %(name)-15s: %(message)s"
int cpc.util.log.log.MAXFILESIZE = 4
string cpc.util.log.log.MODE_DEBUG = "debug"
string cpc.util.log.log.MODE_PRODUCTION = "prod"
string cpc.util.log.log.MODE_TRACE = "trace"
int cpc.util.log.log.NBACKUPS = 5
string cpc.util.log.log.stdoutFormat = "%(levelname)-s, $BOLD%(name)-s$RESET: %(message)s"
int cpc.util.log.log.TRACE = 5