From 3959c7322c58d75d177e7066e3b18880342026a2 Mon Sep 17 00:00:00 2001 From: tison Date: Tue, 12 Nov 2024 09:08:28 +0800 Subject: [PATCH] update links Signed-off-by: tison --- README.md | 8 ++++---- src/facility.rs | 4 ++-- src/format.rs | 4 ++-- src/lib.rs | 8 ++++---- src/sender/tcp.rs | 2 +- src/severity.rs | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 43fca47..36a604a 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ Client library written in Rust to send messages to a Syslog server. Support implementations: -* RFC-3164 Formatter: [The BSD syslog Protocol](http://tools.ietf.org/html/rfc3164) -* RFC-5424 Formatter: [The Syslog Protocol](http://tools.ietf.org/html/rfc5424) -* `UdpSender`: [RFC 5426 - Transmission of Syslog Messages over UDP](http://tools.ietf.org/html/rfc5426) -* `TcpSender`: [RFC 6587 - Transmission of Syslog Messages over TCP](http://tools.ietf.org/html/rfc6587) +* RFC-3164 Formatter: [The BSD syslog Protocol](https://datatracker.ietf.org/doc/html/rfc3164) +* RFC-5424 Formatter: [The Syslog Protocol](https://datatracker.ietf.org/doc/html/rfc5424) +* `UdpSender`: [RFC 5426 - Transmission of Syslog Messages over UDP](https://datatracker.ietf.org/doc/html/rfc5426) +* `TcpSender`: [RFC 6587 - Transmission of Syslog Messages over TCP](https://datatracker.ietf.org/doc/html/rfc6587) * (unix only) Unix domain socket sender (datagram or stream) ## Getting Started diff --git a/src/facility.rs b/src/facility.rs index 0e0725c..b671733 100644 --- a/src/facility.rs +++ b/src/facility.rs @@ -19,8 +19,8 @@ use std::str::FromStr; /// /// See also [RFC 5427] (Textual Conventions for Syslog Management) for the labels. /// -/// [RFC 5424]: https://tools.ietf.org/html/rfc5424. -/// [RFC 5427]: https://tools.ietf.org/html/rfc5427. +/// [RFC 5424]: https://datatracker.ietf.org/doc/html/rfc5424. +/// [RFC 5427]: https://datatracker.ietf.org/doc/html/rfc5427. #[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq)] #[repr(u8)] pub enum Facility { diff --git a/src/format.rs b/src/format.rs index fe091f7..f9edc42 100644 --- a/src/format.rs +++ b/src/format.rs @@ -134,7 +134,7 @@ fn nullable_value(value: Option<&str>) -> &str { /// Format the Syslog message as [RFC-3164] (BSD syslog Protocol). /// -/// [RFC-3164]: https://tools.ietf.org/html/rfc3164 +/// [RFC-3164]: https://datatracker.ietf.org/doc/html/rfc3164 #[derive(Debug)] pub struct RFC3164Formatter<'a, M> { context: &'a SyslogContext, @@ -170,7 +170,7 @@ where /// Format the Syslog message as [RFC 5424] (The Syslog Protocol) /// -/// [RFC 5424]: https://tools.ietf.org/html/rfc5424 +/// [RFC 5424]: https://datatracker.ietf.org/doc/html/rfc5424 #[derive(Debug)] pub struct RFC5424Formatter<'a, M> { context: &'a SyslogContext, diff --git a/src/lib.rs b/src/lib.rs index 373ea76..d87901d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,10 +20,10 @@ //! //! This crate provides facilities to send log messages via syslog. Support implementations: //! -//! * [RFC-3164 Formatter]: [The BSD syslog Protocol](http://tools.ietf.org/html/rfc3164) -//! * [RFC-5424 Formatter]: [The Syslog Protocol](http://tools.ietf.org/html/rfc5424) -//! * [`UdpSender`]: [RFC 5426 - Transmission of Syslog Messages over UDP](http://tools.ietf.org/html/rfc5426) -//! * [`TcpSender`]: [RFC 6587 - Transmission of Syslog Messages over TCP](http://tools.ietf.org/html/rfc6587) +//! * [RFC-3164 Formatter]: [The BSD syslog Protocol](https://datatracker.ietf.org/doc/html/rfc3164) +//! * [RFC-5424 Formatter]: [The Syslog Protocol](https://datatracker.ietf.org/doc/html/rfc5424) +//! * [`UdpSender`]: [RFC 5426 - Transmission of Syslog Messages over UDP](https://datatracker.ietf.org/doc/html/rfc5426) +//! * [`TcpSender`]: [RFC 6587 - Transmission of Syslog Messages over TCP](https://datatracker.ietf.org/doc/html/rfc6587) //! * (unix only) Unix domain socket sender (datagram or stream) //! //! [RFC-3164 Formatter]: format::RFC3164Formatter diff --git a/src/sender/tcp.rs b/src/sender/tcp.rs index 9902497..2434ff8 100644 --- a/src/sender/tcp.rs +++ b/src/sender/tcp.rs @@ -59,7 +59,7 @@ impl TcpSender { /// /// This is generally '\r\n' as defined in [RFC-6587] ยง3.4.2. /// - /// [RFC-6587]: https://tools.ietf.org/html/rfc6587 + /// [RFC-6587]: https://datatracker.ietf.org/doc/html/rfc6587 pub fn set_postfix(&mut self, postfix: impl Into>) { self.postfix = postfix.into(); } diff --git a/src/severity.rs b/src/severity.rs index df9c7ad..217e21e 100644 --- a/src/severity.rs +++ b/src/severity.rs @@ -17,7 +17,7 @@ use std::str::FromStr; /// Syslog severity as defined in [RFC 5424] (The Syslog Protocol). /// -/// [RFC 5424]: https://tools.ietf.org/html/rfc5424. +/// [RFC 5424]: https://datatracker.ietf.org/doc/html/rfc5424. #[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq)] #[repr(u8)] pub enum Severity {