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

Description Usage Arguments Value Author(s) See Also Examples

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

1
2
## S3 method for class '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.

Author(s)

Botond Sipos, Gregory Jordan

See Also

getLogLevel PhyloSim

Examples

1
2
3
4
5
6
7
8
9
	# 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
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.