Skip to content

Commit

Permalink
feat: Add config utility to check file logging setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffqg committed Nov 3, 2024
1 parent 6cc5cc2 commit 91ce415
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Middleware/utilities/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,13 @@ def get_is_chat_complete_add_missing_assistant() -> bool:
"""
data = get_user_config()
return data['chatCompletionAddMissingAssistantGenerator']


def get_use_file_logging() -> bool:
"""
Retrieves the useFileLogging configuration setting.
If true, Wilmer logs to a file in addition to the console.
:return: The useFileLogging setting from the user configuration.
"""
return get_config_value('useFileLogging')

0 comments on commit 91ce415

Please sign in to comment.