Add the --log-dest option to cephadm. The --log-dest option can be
specified 0, 1 or more times. If unspecified, cephadm will log to
the default location, the log file. If specified one ore more times,
each instance will enable the named logging destination.
Example:
```
cephadm boostrap
cephadm --log-dest=syslog bootstrap
cephadm --log-dest=file bootstrap
cephadm --log-dest=syslog --log-dest=file bootstrap
```
Signed-off-by: John Mulligan <jmulligan@redhat.com>
from cephadmlib.locking import FileLock
from cephadmlib.daemon_identity import DaemonIdentity, DaemonSubIdentity
from cephadmlib.packagers import create_packager, Packager
-from cephadmlib.logging import cephadm_init_logging, Highlight
+from cephadmlib.logging import cephadm_init_logging, Highlight, LogDestination
FuncT = TypeVar('FuncT', bound=Callable)
'--verbose', '-v',
action='store_true',
help='Show debug-level log messages')
+ parser.add_argument(
+ '--log-dest',
+ action='append',
+ choices=[v.name for v in LogDestination],
+ help='select one or more destination for persistent logging')
parser.add_argument(
'--timeout',
type=int,