Decorators¶
Decorators used by Bigflow Python API
-
bigflow.util.decorators.
advance_logger
(loglevel)¶ A decorator that log performance infos of a function call at runtime
参数: loglevel (str) -- "DEBUG" or "INFO"(case ignored), log level
-
bigflow.util.decorators.
singleton
(clazz, *args, **kw)¶ A decorator that makes a class singleton
参数: clazz (class) -- class to decorate