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

Support log splitting, LOG ROTATE #105

Closed
winlinvip opened this issue May 1, 2015 · 7 comments
Closed

Support log splitting, LOG ROTATE #105

winlinvip opened this issue May 1, 2015 · 7 comments
Assignees
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented May 1, 2015

https://github.com/winlinvip/simple-rtmp-server/issues/105

TRANS_BY_GPT3

@winlinvip winlinvip added this to the srs 1.0 release milestone May 1, 2015
@winlinvip winlinvip changed the title 支持rtmp回源穿透认证 srs reload时重新打开一次新文件,便于logrotate切割文件又不影响日志打印到新文件中 May 1, 2015
@winlinvip winlinvip added Feature It's a new feature. and removed duplicate labels May 1, 2015
@winlinvip winlinvip modified the milestones: srs 3.0 release, srs 1.0 release May 1, 2015
@winlinvip
Copy link
Member Author

winlinvip commented Dec 8, 2016

Log rotation is now supported.
SIGUSR1 is used for log rotation in nginx and has been corrected. Persistence log is not supported through signals, only through the API.
Reference: 2955b1f

TRANS_BY_GPT3

@winlinvip winlinvip changed the title srs reload时重新打开一次新文件,便于logrotate切割文件又不影响日志打印到新文件中 支持日志切割,LOG ROTATE Dec 8, 2016
@ajaxhe
Copy link

ajaxhe commented Jan 15, 2017

persistence log does not pass through signals, only supported through API.
-- In https://github.com/ossrs/srs/wiki/v3_CN_HTTPApi#persistence-config
In this document, I didn't see the API calling method for adjusting the persistence-config after modification?

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Jan 16, 2017

@ajaxhe The RAW API has an Update function, which means that when calling RawApi, it will automatically persist the Config. SRS does not provide a separate API Persistence Config, so it is not useful, right?

TRANS_BY_GPT3

@ajaxhe
Copy link

ajaxhe commented Jan 16, 2017

Ah, indeed, it's my fault for not paying attention to the updated configuration file after the update... This is great, there are no issues at all.

When using the API to adjust the configuration, there is another confusion:
In the RAW Vhost configuration section, it seems that only a format like key-value is supported when configuring. Suppose I want to add a new vhost and configure a complete block configuration for HLS, it seems that using the API is not a good solution.
For example, if I want to add the complete configuration for hls.ajaxhe.com using the API, is there any good method? Thank you~

vhost hls.ajaxhe.com {
    hls {
        enabled on;            
        hls_fragment 10;
        hls_window 60;         
        hls_path ./objs/nginx/html;     
        hls_m3u8_file [app]/[stream].m3u8;
        hls_ts_file [app]/[stream]-[seq].ts;
    }
}

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Jan 16, 2017

The RAW API needs improvement, currently it provides mainly key-value modification.

TRANS_BY_GPT3

@ajaxhe
Copy link

ajaxhe commented Jan 16, 2017

Understood, received, thank you~

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Oct 7, 2019

@winlinvip winlinvip self-assigned this Aug 26, 2021
@winlinvip winlinvip changed the title 支持日志切割,LOG ROTATE Support log splitting, LOG ROTATE Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants