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

how to add prefix before log file name? #291

Closed
pigflying opened this issue May 20, 2020 · 3 comments
Closed

how to add prefix before log file name? #291

pigflying opened this issue May 20, 2020 · 3 comments

Comments

@pigflying
Copy link

for examp: HI_20200520.log

@769344359
Copy link
Member

769344359 commented Jun 16, 2020

the same as
#248
and
#289

@769344359
Copy link
Member

769344359 commented Jun 16, 2020

maybe you can try with this
first step :
in php,ini

seaslog.disting_folder = 0

second step:
log message with below code

<?php
SeasLog::setLogger('HI');

@pigflying

@Rock-Lee-520
Copy link
Member

Rock-Lee-520 commented Sep 4, 2021

We will provide this new feature in Seaslog-2.3.0 , refer to https://github.com/SeasX/SeasLog/blob/master/tests/023.phpt
you can configure default file prefix in seaslog.ini , and also use setFilePrefix function to set , or getFilePrefix function get it .
Thank your suggestion ! @pigflying

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

No branches or pull requests

3 participants