Learn R Programming

phylosim (version 3.0.5)

setLogLevel.PhyloSim: Set the log level for a given PhyloSim object

Description

Set the log level for a given PhyloSim object.

No logging is performed if the log level is negative. If the log level is zero, the messages passed to the Log method will be writen in the log file. If the log level is positive, the messages passed to the Debug method are saved as well.

The default log level is -1. The specified file will be truncated in the case it already exists.

Usage

# S3 method for PhyloSim
setLogLevel(this, value, ...)

Arguments

this

A PhyloSim object.

value

The new log level as an integer.

...

Not used.

Value

The new level as an integer vector of length one.

See Also

getLogLevel PhyloSim

Examples

Run this code
# NOT RUN {
	# Create a PhyloSim object
	sim<-PhyloSim();
	# get/set log level
	getLogLevel(sim)
	setLogLevel(sim,0)
	# set/get log level via virtual field
	sim$logLevel<- -1
	sim$logLevel
 
# }

Run the code above in your browser using DataLab