class DnsLog

ManagedElement
+-IpworksFunction
+-IpworksDnsRoot
+-DnsServer
+-BindService
+-DnsLog

DNS logs relevant parameters.
The class DnsSmLog controls DNS Server's log generation.

Attributes
string
readOnly
directory = /cluster/storage/no-backup/ipworks/logs/
The directory where the log files are retained.
Note: This parameter cannot be changed currently.
The current log file is ipworks_dns.log and the most recent files are ipworks_dns.log.0 to ipworks_dns.log.<max-1>.
When the current log exceeds the size limit or a time restriction, the following actions are performed:
-- The ipworks_dns.log.<max-1> file is deleted.
-- The .0 to .<max-2> files are renamed .1 to <max-1> respectively.
-- The current file is closed and renamed to ipworks_dns.log.0.
-- A new ipworks_dns.log file is created.
string
key
mandatory
noNotification
restricted
dnsLogId
The identifier for the DNS Log.
int32
fileSize = 10 { 1..20 }
The maximum size (Mb) of log file.
It specifies the maximum size of each log file. When this limit is exceeded, a new file is opened. The default is 10 MB.The range is from 1 to 20 (MB).
Note:The maximum disk space consumed by the log files is this parameter times (1 plus the maximum number of logs).
With the default setting of 10 files and 10 MB, this means 110 MB of disk space. After change the Log Size, reload the DNS server manually to make it take effect.
uint16
filesNumber = 10 { 1..20 }
Number of log files. The range is 1 to 20. The default value is 10.
It specifies the maximum number of log files to be retained in addition to the current file.
This limits the number of the most recent old log files retained (ipworks_dns.log.0 to ipworks_dns.log.<max-1>).

DnsLogLevel
level = DNS_LOG_LEVEL_DISABLE
Log level. The default log level is DNS_LOG_LEVEL_DISABLE
Only Two Log levels are supported in DNS Log, which are :
--DNS_LOG_LEVEL_DEBUG : once it is selected, DNS Log is enabled and in debug log level
--DNS_LOG_LEVEL_DISABLE : once it is selected, DNS Log is disabled

For details of the Debug Log Level, refer to the attribute debugLogLevel in the MOC BindService.
Note: Use debug logging only to diagnose problems. Turn it off during normal operation.
This is because the log file grows rapidly when debugging is enabled. This will degrade server performance, especially at higher levels of debug logging.

  class DnsLog