Class: Journalctl

Journalctl(optsopt)

new Journalctl(optsopt)

Creates an instance of Journalctl.
Parameters:
Name Type Attributes Default Description
opts JournalctlOptions <optional>
{} Options to configure journalctl.
Source:

Methods

getStderr() → {node:stream}

Gets the stderr stream of the journalctl process.
Source:
Returns:
The stderr stream.
Type
node:stream

getStdout() → {node:stream}

Gets the stdout stream of the journalctl process.
Source:
Returns:
The stdout stream.
Type
node:stream

stop(cbopt)

Stops the journalctl process.
Parameters:
Name Type Attributes Description
cb function <optional>
Callback function to be called on process exit.
Source: