summaryrefslogtreecommitdiff
path: root/docs/system/syslog.rst
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-11-27 17:31:39 +0100
committerChristian Poessinger <christian@poessinger.com>2019-11-27 17:31:39 +0100
commit9ed5ac0cd6e8f0745c866db8ffd229323091fd15 (patch)
tree9274cc007e6fc9b7e11f0691ff306a547a00f9a9 /docs/system/syslog.rst
parent852f7f7a232a79fc802923730673024d1a5171be (diff)
downloadvyos-documentation-9ed5ac0cd6e8f0745c866db8ffd229323091fd15.tar.gz
vyos-documentation-9ed5ac0cd6e8f0745c866db8ffd229323091fd15.zip
Refactor "code-block:: sh" to "code-block:: console"
This will add proper new-lines into the rendered PDF. Before if it has been a long line, not all content was preserved in the PDF.
Diffstat (limited to 'docs/system/syslog.rst')
-rw-r--r--docs/system/syslog.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/system/syslog.rst b/docs/system/syslog.rst
index 8acbc237..29a9aec5 100644
--- a/docs/system/syslog.rst
+++ b/docs/system/syslog.rst
@@ -16,14 +16,14 @@ Logging to serial console
The below would log all messages to :code:`/dev/console`.
-.. code-block:: sh
+.. code-block:: console
set system syslog console facility all level all
Use the **[tab]** function to display all facilities and levels which can
be configured.
-.. code-block:: sh
+.. code-block:: console
vyos@vyos# set system syslog console facility <TAB>
Possible completions:
@@ -70,7 +70,7 @@ Logging to a custom file
Logging to a custom file, rotation size and the number of rotate files left
on the system can be configured.
-.. code-block:: sh
+.. code-block:: console
set system syslog file <FILENAME> facility <FACILITY> level <LEVEL>
set system syslog file <FILENAME> archive file <NUMBER OF FILES>
@@ -88,7 +88,7 @@ using either TCP or UDP. The default is sending the messages via UDP.
**UDP**
-.. code-block:: sh
+.. code-block:: console
set system syslog host 10.1.1.1 facility all level all
<optional>
@@ -97,7 +97,7 @@ using either TCP or UDP. The default is sending the messages via UDP.
**TCP**
-.. code-block:: sh
+.. code-block:: console
set system syslog host 10.1.1.2 facility all level all
set system syslog host 10.1.1.2 facility all protocol tcp
@@ -109,7 +109,7 @@ If logging to a local useraccount is configured, all defined log messages are
display on the console if the local user is logged in, if the user is not
logged in, no messages are being displayed.
-.. code-block:: sh
+.. code-block:: console
set system syslog user <LOCAL_USERNAME> facility <FACILITY> level <LEVEL>
@@ -118,7 +118,7 @@ Show logs
Display log files on the console
-.. code-block:: sh
+.. code-block:: console
vyos@vyos:~$ show log
Possible completions:
@@ -149,7 +149,7 @@ Show contents of a log file in an image
Log messages from a specified image can be displayed on the console:
-.. code-block:: sh
+.. code-block:: console
$ show log image <image name>
$ show log image <image name> [all | authorization | directory | file <file name> | tail <lines>]