1 // RPC primitives for safcm: logging constants
3 // SPDX-License-Identifier: GPL-3.0-or-later
4 // Copyright (C) 2021-2024 Simon Ruderich
12 // LogLevel controls the number of displayed log messages. Higher levels
13 // include all messages from lower levels (e.g. LogVerbose includes all
14 // messages from LogInfo).
23 // Log host information and changes on remote host
25 // Log additional information and commands leading up to the changes
27 // Log output of all commands
29 // Log all RPC messages
33 func ParseLogLevel(s string) (LogLevel, error) {
49 return 0, fmt.Errorf("invalid LogLevel %q", s)