forked from phoenix/litellm-mirror
(feat) proxy - add timestamp to debug logs
This commit is contained in:
parent
087bd5e267
commit
47110180c8
1 changed files with 4 additions and 1 deletions
|
@ -7,8 +7,11 @@ handler = logging.StreamHandler()
|
|||
handler.setLevel(logging.DEBUG)
|
||||
|
||||
# Create a formatter and set it for the handler
|
||||
formatter = logging.Formatter(
|
||||
"\033[92m%(asctime)s - %(name)s - %(levelname)s\033[0m: %(message)s",
|
||||
datefmt="%H:%M:%S",
|
||||
)
|
||||
|
||||
formatter = logging.Formatter("\033[92m%(name)s - %(levelname)s\033[0m: %(message)s")
|
||||
|
||||
handler.setFormatter(formatter)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue