iLO-manager first main commitgit status
This commit is contained in:
1 parent
e6f4cc04ca
commit
599d8da562
3271 files changed
+550655
No files matched your search
@@ -0,0 +1,19 @@
|
||||
""" Redfish restful library """
|
||||
|
||||
__all__ = ["rest", "ris", "hpilo"]
|
||||
__version__ = "7.0.0.0"
|
||||
|
||||
import logging
|
||||
|
||||
from redfish.rest.v1 import AuthMethod, LegacyRestClient, RedfishClient
|
||||
|
||||
|
||||
def redfish_logger(file_name, log_format, log_level=logging.ERROR):
|
||||
"""redfish logger"""
|
||||
formatter = logging.Formatter(log_format)
|
||||
fhdl = logging.FileHandler(file_name)
|
||||
fhdl.setFormatter(formatter)
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.addHandler(fhdl)
|
||||
logger.setLevel(log_level)
|
||||
return logger
|
||||
Reference in new issue
Block a user