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

[3pt] Logging configuration #1974

Closed
Tracked by #2665
Onvember opened this issue Mar 22, 2021 · 0 comments · Fixed by #3397
Closed
Tracked by #2665

[3pt] Logging configuration #1974

Onvember opened this issue Mar 22, 2021 · 0 comments · Fixed by #3397
Assignees
Labels
feature A new functionality server [area] Task relates to Tarantool's server (core) functionality

Comments

@Onvember
Copy link
Contributor

Onvember commented Mar 22, 2021

Related dev. issue(s): tarantool/tarantool#689

Product: Tarantool
Root document:

SME: @ gumix

Details

To configure log module eary without initializing box module at all, call the log.cfg({}) method, where the following
arguments are acceptable:

  • log to specify file, pipe or syslog (same as
    box.cfg{log} option); the default value is nil
    and stderr is used;

  • level to specify logging level; can be numbers (1-7) or
    strings (fatal,syserror,error,crit,warn,info,verbose,debug);
    the default value is 5 (i.e. 'info');

    While for symbolic representations of levels we allow only
    predefined keywords to be used, to keep backward compatibility
    the numbers can be any;

  • format to specify output encoding ('plain' or 'json');
    the default value is 'plain';

  • nonblock to open logging output in nonblocking mode
    (true or false); the default value is false.

Requested by @ cyrillos in tarantool/tarantool@a94a9b3.

@Onvember Onvember added the feature A new functionality label Mar 22, 2021
@NickVolynkin NickVolynkin changed the title [0pt] Module log [3pt] Module log Mar 25, 2021
@veod32 veod32 added the server [area] Task relates to Tarantool's server (core) functionality label Feb 3, 2022
@veod32 veod32 changed the title [3pt] Module log [3pt] Logging configuration Feb 3, 2022
@veod32 veod32 removed the 3sp label Mar 6, 2023
andreyaksenov added a commit that referenced this issue Mar 9, 2023
andreyaksenov added a commit that referenced this issue Mar 10, 2023
andreyaksenov added a commit that referenced this issue Mar 10, 2023
andreyaksenov added a commit that referenced this issue Mar 10, 2023
andreyaksenov added a commit that referenced this issue Mar 10, 2023
andreyaksenov added a commit that referenced this issue Mar 10, 2023
andreyaksenov added a commit that referenced this issue Mar 10, 2023
andreyaksenov added a commit that referenced this issue Mar 10, 2023
andreyaksenov added a commit that referenced this issue Mar 13, 2023
andreyaksenov added a commit that referenced this issue Mar 13, 2023
andreyaksenov added a commit that referenced this issue Mar 14, 2023
andreyaksenov added a commit that referenced this issue Mar 14, 2023
* Document logging configuration
* Document default log_nonblock values for different loggers

Resolves #1974
Resolves #2242
p7nov pushed a commit that referenced this issue Mar 24, 2023
* Document logging configuration
* Document default log_nonblock values for different loggers

Resolves #1974
Resolves #2242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants