netcmd: modify Command.get_logger to use get_samba_logger
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 21 Aug 2018 00:08:59 +0000 (12:08 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 10 Oct 2018 04:16:22 +0000 (06:16 +0200)
commit0979d96006b7220fb8838dc34f57dcb6f1ad011a
treed3bd1738f1e027204c33d9a60e0bd5e90abf7926
parent4260fb87edd1719ecf6d07b3b5230a070410f629
netcmd: modify Command.get_logger to use get_samba_logger

By doing this, we don't need to repeat the log level convert code any more.
Also, logs have colors now.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/__init__.py
python/samba/tests/samba_tool/computer.py