rolllog(3)
πΈ NAME πΈ
okay bestie, meet rolllog(3) β the manual page for Net::DNS::SEC::Tools::rolllog, aka the DNSSEC-Tools rollover logging interfaces. π Itβs giving βlogging glue for the rollover programs,β and weβre gonna go through every single detail together. π«Ά
β¨ SYNOPSIS β¨
use Net::DNS::SEC::Tools::rolllog;
@levels = rolllog_levels();
$curlevel = rolllog_level();
$oldlevel = rolllog_level("info");
$oldlevel = rolllog_level(LOG_ERR,1);
$curlogfile = rolllog_file();
$oldlogfile = rolllog_file("-");
$oldlogfile = rolllog_file("/var/log/roll.log",1);
$loglevelstr = rolllog_str(8)
$loglevelstr = rolllog_str("info")
$ret = rolllog_num("info");
$bool = rolllog_validlevel($newlevel);
$bool = rolllog_validlevel(8);
$curtz = rolllog_gettz();
$oldtz = rolllog_settz('local');
rolllog_log(LOG_INFO,"example.com","zone is valid");
π DESCRIPTION π
The Net::DNS::SEC::Tools::rolllog module provides logging interfaces for the rollover programs. These interfaces let log messages actually get recorded. β¨ Real talk: rollerd must be running, because rollerd is responsible for updating the log file. No rollerd, no log-file updates, periodt. π
Each log message gets assigned a particular logging level. The valid logging levels are:
tmiβ numeric1β the highest level; all log messages are saved. πexpireβ numeric3β a verbose countdown of zone expiration is given. β³infoβ numeric4β many informational messages are recorded. πΈphaseβ numeric6β each zoneβs current rollover phase is given. πerrβ numeric8β errors are recorded. π¨fatalβ numeric9β fatal errors are saved. π
The levels include all numerically higher levels. For example, if the log level is set to phase, then err and fatal messages will also be recorded. iykyk β the higher numbers are included automatically. π
π«Ά LOGGING INTERFACES π«Ά
rolllog_file(newfile,useflag)β this routine sets and retrieves the log file forrollerd. Thenewfileargument specifies the new log file to be set. Ifnewfileexists, it must be a regular file. π Theuseflagargument is a boolean that indicates whether or not to give a descriptive message if an invalid log file is given. Ifuseflagis true, the message is given and the process exits; if false, no message is given. For any error condition, an empty string is returned. π«rolllog_gettz()β this routine returns the timezone selector currently in use. This value may be either'gmt'(for Greenwich Mean Time) or'local'(for the hostβs local time.) πrolllog_level(newlevel,useflag)β this routine sets and retrieves the logging level forrollerd. Thenewlevelargument specifies the new logging level to be set.newlevelmay be given in either text or numeric form. π’ Theuseflagargument is a boolean that indicates whether or not to give a descriptive message and exit if an invalid logging level is given. Ifuseflagis true, the message is given and the process exits; if false,-1is returned. π If given with no arguments, the current logging level is returned. In fact, the current level is always returned unless an error is found.-1is returned on error. so if you see-1, something went off. πrolllog_levels()β this routine returns an array holding the text forms of the user-settable logging levels. The levels are returned in order, from most verbose to least. πrolllog_log(level,group,message)β therolllog_log()interface writes a message to the log file. Log messages have this format:
timestamp: group: message
The level argument is the messageβs logging level. It will only be written to the log file if the current log level is numerically equal to or less than level. π group allows messages to be associated together. It is currently used by rollerd to group messages by the zone to which the message applies. ποΈ The message argument is the log message itself. Trailing newlines are removed. βοΈ
rolllog_num(loglevel)β this routine translates a text log level (given inloglevel) into the associated numeric log level. The numeric log level is returned to the caller. π Ifloglevelis an invalid log level,-1is returned. πrolllog_settz(tzsel)β this routine sets the timezone to be used for timestamps in messages written to the log. Thistzselvalue may be either'gmt'(Greenwich Mean Time) or'local'(for the hostβs local time.)tzselmay be uppercase or lowercase; the value will be converted to lowercase. If no value is passed, then the default will be used. π°οΈ The current timezone selector is returned. If an invalid selector is given, then an undefined value is returned. πrolllog_str(loglevel)β this routine translates a log level (given inloglevel) into the associated text log level. The text log level is returned to the caller. π€ Ifloglevelis a text string, it is checked to ensure it is a valid log level. Case is irrelevant when checkingloglevel. π Ifloglevelis numeric, it must be in the valid range of log levels.undefis returned ifloglevelis invalid. π΅βπ«rolllog_validlevel(level)β this interface returns a boolean value indicating if the given logging level is valid. β Thelevelargument is the logging level to be validated. It may be a numeric or textual value. π
π COPYRIGHT π
Copyright 2005-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details. π
π¦ AUTHOR π¦
Wayne Morrison, tewok@tislabs.com π
π SEE ALSO π
rollctl(1)rollerd(8)Net::DNS::SEC::Tools::rollmgr.pm(3)
mwah π β source/version is perl v5.44.0, and this page is dated 2026-10-17. bye bestie! π«Άπ
π¦ where this page comes from
- arch rolling: dnssec-tools 2.2.3-16 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms