File: getLogger.Rd

package info (click to toggle)
r-cran-logging 0.10-108-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 220 kB
  • sloc: sh: 13; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logger.R
\name{getLogger}
\alias{getLogger}
\title{Set defaults and get the named logger.}
\usage{
getLogger(name = "", ...)
}
\arguments{
\item{name}{The name of the logger}

\item{...}{Any properties you may want to set in the newly created
logger. These have no effect if the logger is already present.}
}
\value{
The logger retrieved or registered.
}
\description{
Make sure a logger with a specific name exists and return it as a
\var{Logger} S4 object.  if not yet present, the logger will be created and
given the values specified in the \dots arguments.
}
\examples{
getLogger()  # returns the root logger
getLogger('test.sub')  # constructs a new logger and returns it
getLogger('test.sub')  # returns it again

}