Skip to content

Commit 78615f7

Browse files
authored
[GuideLLM Refactor] Entrypoint: Reintroduce changes from main (#363)
## Summary Reintroduces a few changes from main --------- Signed-off-by: Samuel Monson <[email protected]>
1 parent ab5466b commit 78615f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/guidellm/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def decode_escaped_str(_ctx, _param, value):
104104

105105

106106
@click.group()
107+
@click.version_option(package_name="guidellm", message="guidellm version: %(version)s")
107108
def cli():
108109
"""
109110
Main entry point for the GuideLLM command-line interface.

src/guidellm/logger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def configure_logger(config: LoggingSettings = settings.logging):
7171
logger.add(
7272
sys.stdout,
7373
level=config.console_log_level.upper(),
74-
format="{time} | {function} | {level} - {message}",
74+
format="<green>{time:YY-MM-DD HH:mm:ss}</green>|<level>{level: <8}</level> \
75+
|<cyan>{name}:{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>"
7576
)
7677

7778
if config.log_file or config.log_file_level:

0 commit comments

Comments
 (0)