Learn R Programming

d4storagehub4R (version 0.4-5)

d4storagehub4RLogger: d4storagehub4RLogger

Description

d4storagehub4RLogger

d4storagehub4RLogger

Arguments

Value

Object of R6Class for modelling a simple logger

Format

R6Class object.

Abstract Methods

INFO(text)

Logger to report information. Used internally

WARN(text)

Logger to report warnings. Used internally

ERROR(text)

Logger to report errors. Used internally

Public fields

verbose.info

verbose info, default is FALSE

verbose.debug

verbose debug, default is FALSE

loggerType

logger type

Methods


Method logger()

Logger function

Usage

d4storagehub4RLogger$logger(type, text)

Arguments

type

type

text

text


Method INFO()

INFO logger function

Usage

d4storagehub4RLogger$INFO(text)

Arguments

text

text


Method WARN()

WARN logger function

Usage

d4storagehub4RLogger$WARN(text)

Arguments

text

text


Method ERROR()

ERROR logger function

Usage

d4storagehub4RLogger$ERROR(text)

Arguments

text

text


Method new()

Initializes a basic logger class

Usage

d4storagehub4RLogger$new(logger = NULL)

Arguments

logger

the type of logger, either NULL (default), INFO, or DEBUG


Method getClassName()

Get class name

Usage

d4storagehub4RLogger$getClassName()

Returns

the class name


Method getClass()

Get class

Usage

d4storagehub4RLogger$getClass()

Returns

the class


Method clone()

The objects of this class are cloneable with this method.

Usage

d4storagehub4RLogger$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.