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

Add time information when the crash happened #1158

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sasanidas
Copy link
Member

No description provided.

@Sasanidas Sasanidas requested a review from cxxxr November 14, 2023 13:43
@cxxxr
Copy link
Member

cxxxr commented Nov 14, 2023

How about using log4cl if logging time?

@Sasanidas
Copy link
Member Author

Umm, which functionality do you have in mind with log4cl? 🤔

@cxxxr
Copy link
Member

cxxxr commented Nov 17, 2023

The log is output with time as follows

 <INFO> [21:16:15] lem-core lem.lisp (lem) - Starting Lem

There is also the problem that codes that record time are often duplicated and the format is not consistent.

@Sasanidas
Copy link
Member Author

I see, is there any easy way to pipe the output of log4cl to the same output as the command?

@cxxxr
Copy link
Member

cxxxr commented Nov 17, 2023

I think it should be something like this.

(log:config :sane :daily (merge-pathnames "logs/error.log" (lem:lem-home)))
(log:error value)

@Sasanidas
Copy link
Member Author

Oh so you mean changing the function to use log4cl entirely, I see, I'll do that then 👍

@Sasanidas Sasanidas self-assigned this Dec 16, 2023
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

2 participants