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

The log pattern must be configurable #17

Closed
Tobi823 opened this issue Sep 15, 2016 · 1 comment
Closed

The log pattern must be configurable #17

Tobi823 opened this issue Sep 15, 2016 · 1 comment

Comments

@Tobi823
Copy link

Tobi823 commented Sep 15, 2016

The user should be ablet o configure the log pattern for e.g. adding timestamps to the log messages

Tobi823 pushed a commit that referenced this issue Sep 15, 2016
- use filter next_ad_int_file_conversion_pattern_filter and next_ad_int_echo_conversion_pattern_filter for request file/echo conversion pattern
- add constants NEXT_AD_INT_FILE_CONVERSION_PATTERN and NEXT_AD_INT_ECHO_CONVERSION_PATTERN containing the two default conversion pattern
@Tobi823
Copy link
Author

Tobi823 commented Sep 15, 2016

Now you can configure the log pattern for the debug.log file and for the webpage (when executing "Sync To AD" or "Sync To WordPress".

Either you manipulate the values in the constants.php (NEXT_AD_INT_FILE_CONVERSION_PATTERN or NEXT_AD_INT_ECHO_CONVERSION_PATTERN) or you can add your custom filter function (NextADInt_Core_Logger::FILE_CONVERSION_PATTERN_FILTER or NextADInt_Core_Logger::ECHO_CONVERSION_PATTERN_FILTER).

@Tobi823 Tobi823 closed this as completed Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant