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 verbose config with logger #249

Merged
merged 2 commits into from
Nov 11, 2024
Merged

add verbose config with logger #249

merged 2 commits into from
Nov 11, 2024

Conversation

v1xingyue
Copy link
Contributor

Let's add verbose with logger config.
Most log output will use logger.debug write infomation , with the verbose = true.
When developer want quite , they can change the verbose = false.

@lalalune
Copy link
Member

I like it, seems harmless, but how do we configure? env var?

@v1xingyue
Copy link
Contributor Author

v1xingyue commented Nov 10, 2024

I like it, seems harmless, but how do we configure? env var?

we can make it like this :

import { elizaLogger } from "@eliza/core";
elizaLogger.closeByNewLine = false;
elizaLogger.verbose = true | or false ;

And the verbose default value is false.

Also I add the default value from process.env.

You can add
verbose=true with *.env * , Or you can put it with shell :

verbose=true ts-node src/app.ts 

@lalalune lalalune merged commit f9d32e0 into elizaOS:main Nov 11, 2024
@lalalune
Copy link
Member

merged, good feature

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.

2 participants