mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
This commit adds support for timestamps in iso8601 format with timezone when logging. This is exposed through the iso8601-tzinfo printtime suboption. It also makes the new logging format the default for -g output, hopefully removing the need for custom timestamp parsing in scripts.
39 lines
805 B
Text
39 lines
805 B
Text
/*
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
*
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
* information regarding copyright ownership.
|
|
*/
|
|
|
|
logging {
|
|
channel one {
|
|
file "one.out";
|
|
print-time no;
|
|
};
|
|
channel two {
|
|
file "two.out";
|
|
print-time yes;
|
|
};
|
|
channel three {
|
|
file "three.out";
|
|
print-time local;
|
|
};
|
|
channel four {
|
|
file "four.out";
|
|
print-time iso8601;
|
|
};
|
|
channel five {
|
|
file "five.out";
|
|
print-time iso8601-utc;
|
|
};
|
|
channel six {
|
|
file "six.out";
|
|
print-time iso8601-tzinfo;
|
|
};
|
|
};
|