Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added timestamp to logger #646

Merged
merged 3 commits into from
May 26, 2024
Merged

Conversation

theCyberTech
Copy link
Contributor

Updated the logger.py file to include timestamps when logging output. For example:

[2024-05-20 15:32:48][DEBUG]: == Working Agent: Researcher
[2024-05-20 15:32:48][INFO]: == Starting Task: Research the topic
[2024-05-20 15:33:22][DEBUG]: == [Researcher] Task output:

Updated the logger.py file to include timestamps when logging output. For example:

 [2024-05-20 15:32:48][DEBUG]: == Working Agent: Researcher
 [2024-05-20 15:32:48][INFO]: == Starting Task: Research the topic
 [2024-05-20 15:33:22][DEBUG]: == [Researcher] Task output:
Copy link
Collaborator

@pythonbyte pythonbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice!

This reverts commit 95d18d5.

incorrect bramch for this commit
@theCyberTech
Copy link
Contributor Author

Apologies, had to revert an unrelated commit here

Copy link
Owner

@joaomdmoura joaomdmoura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@joaomdmoura joaomdmoura merged commit bf40956 into joaomdmoura:main May 26, 2024
@gabriels1234
Copy link

@joaomdmoura
import datetime?

timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S')

@joaomdmoura
Copy link
Owner

Good catch, just got the error online

@theCyberTech
Copy link
Contributor Author

Sorry, I forget to add the datetime module

bboynton97 pushed a commit to AgentOps-AI/crewAI that referenced this pull request May 29, 2024
* Added timestamp to logger

Updated the logger.py file to include timestamps when logging output. For example:

 [2024-05-20 15:32:48][DEBUG]: == Working Agent: Researcher
 [2024-05-20 15:32:48][INFO]: == Starting Task: Research the topic
 [2024-05-20 15:33:22][DEBUG]: == [Researcher] Task output:

* Update tool_usage.py

* Revert "Update tool_usage.py"

This reverts commit 95d18d5.

incorrect bramch for this commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants