Skip to content

add verbose config with logger#249

Merged
lalalune merged 2 commits into
elizaOS:mainfrom
v1xingyue:main
Nov 11, 2024
Merged

add verbose config with logger#249
lalalune merged 2 commits into
elizaOS:mainfrom
v1xingyue:main

Conversation

@v1xingyue
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@v1xingyue
Copy link
Copy Markdown
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
Copy Markdown
Member

merged, good feature

lalalune added a commit that referenced this pull request May 3, 2026
add verbose config with logger
FranceFlapjack pushed a commit to FranceFlapjack/eliza that referenced this pull request May 16, 2026
add verbose config with logger
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