"""This file is just for test purpose.
"""

from custom_logger import SksLogger

# print(SksLogger.__doc__, "\n")
# print()

logger = SksLogger()
logger.set_log_name('sksdata-logs')
logger.set_log_level_threshold_name('INFO')

log_message = "log entry 1"

logger.fetch_logs(logger.log_name)
print()

# logger.default(log_message)
# logger.debug(log_message)
# logger.info(log_message)
# logger.notice(log_message)
# logger.warning(log_message)
# logger.error(log_message)
# logger.critical(log_message)
# logger.alert(log_message)
# logger.emergency(log_message

# wait for logs to pushed, before reading updated logs
# import time; time.sleep(7)

# print()
# logger.fetch_logs(logger.log_name)

# print()
# #filter logs by level name
# level_name = 'INFO'
# logger.filter_logs_by_level_name(logger.log_name, level_name)

# print()
# search_key = 'entry 8'
# logger.search_in_logs(logger.log_name, search_key)
# print()
# search_key = '2019-07-06'
# logger.search_in_logs(logger.log_name, search_key, log_entry_field = 'timestamp')
# print()

# print("\nclearing log entries ...")
# logger.clear_logs(logger.log_name)

# # read logs from multipe projects
# PROJECT_IDS = ["cp-sksdata-dev", "another-project"]
# logger.fetch_logs_from_multiple_projects(PROJECT_IDS)

"""This file is just for test purpose.
"""

from custom_logger import SksLogger

# print(SksLogger.__doc__, "\n")
# print()

logger = SksLogger()
logger.set_log_name('sksdata-logs')
logger.set_log_level_threshold_name('INFO')

log_message = "log entry 1"

logger.fetch_logs(logger.log_name)
print()

# logger.default(log_message)
# logger.debug(log_message)
# logger.info(log_message)
# logger.notice(log_message)
# logger.warning(log_message)
# logger.error(log_message)
# logger.critical(log_message)
# logger.alert(log_message)
# logger.emergency(log_message

# wait for logs to pushed, before reading updated logs
# import time; time.sleep(7)

# print()
# logger.fetch_logs(logger.log_name)

# print()
# #filter logs by level name
# level_name = 'INFO'
# logger.filter_logs_by_level_name(logger.log_name, level_name)

# print()
# search_key = 'entry 8'
# logger.search_in_logs(logger.log_name, search_key)
# print()
# search_key = '2019-07-06'
# logger.search_in_logs(logger.log_name, search_key, log_entry_field = 'timestamp')
# print()

# print("\nclearing log entries ...")
# logger.clear_logs(logger.log_name)

# # read logs from multipe projects
# PROJECT_IDS = ["cp-sksdata-dev", "another-project"]
# logger.fetch_logs_from_multiple_projects(PROJECT_IDS)

This file is just for test purpose. # print(SksLogger.__doc__, "\n") # print() # logger.default(log_message) # logger.debug(log_message) # logger.info(log_message) # logger.notice(log_message) # logger.warning(log_message) # logger.error(log_message) # logger.critical(log_message) # logger.alert(log_message) # logger.emergency(log_message # wait for logs to pushed, before reading updated logs # import time; time.sleep(7) # print() # logger.fetch_logs(logger.log_name) # print() # #filter logs by level name # level_name = 'INFO' # logger.filter_logs_by_level_name(logger.log_name, level_name) # print() # search_key = 'entry 8' # logger.search_in_logs(logger.log_name, search_key) # print() # search_key = '2019-07-06' # logger.search_in_logs(logger.log_name, search_key, log_entry_field = 'timestamp') # print() # print("\nclearing log entries ...") # logger.clear_logs(logger.log_name) # # read logs from multipe projects # PROJECT_IDS = ["cp-sksdata-dev", "another-project"] # logger.fetch_logs_from_multiple_projects(PROJECT_IDS)