You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
title: "Debugging"
|
|
|
|
category: docs
|
Improve realtime filters (#535)
* Simplify Filters class
* Simplify filter switching in demo app
* Create FilterCameraPreview, improve GlCameraPreview
* Add comments
* Cleanup EglViewport
* Rename setPreviewingViewSize
* Create Filter interface and BaseFilter abstract class
* Move GL drawing code into BaseFilter
* Avoid releasing location pointers
* Add more docs and Filter.copy()
* Split two packages
* Remove filters package from code coverage computation
* Document all filters, implement onCopy, suppress warnings
* Add javadocs in Filters class
* Move NoFilter, add string resources
* XML support, require experimental flag
* Update first 6 filters with onPreDraw
* Update DuotoneFilter with onPreDraw
* Update FillLightFilter with onPreDraw
* Update Gamma, Grain, Grayscale, Hue, InvertColors, Lomoish with onPreDraw
* Update Posterize, Saturation, Sepia with onPreDraw
* Update all filters with onPreDraw
* Add OneParameterFilter and TwoParameterFilter
* Implement OneParameterFilter and TwoParameterFilter in all filters
* Improve comments
* Remove commented out code in demo
* Add FilterParser test
* Add GlCameraPreview and CameraView tests
* Add documentation
* Fix tests
5 years ago
|
|
|
order: 14
|
|
|
|
date: 2018-12-20 20:02:38
|
|
|
|
disqus: 1
|
|
|
|
---
|
|
|
|
|
|
|
|
`CameraView` will log a lot of interesting events related to the camera lifecycle. These are important
|
|
|
|
to identify bugs. The default logger will simply use Android `Log` methods posting to logcat.
|
|
|
|
|
|
|
|
You can attach and detach external loggers using `CameraLogger.registerLogger()`:
|
|
|
|
|
|
|
|
```java
|
|
|
|
CameraLogger.registerLogger(new Logger() {
|
|
|
|
@Override
|
|
|
|
public void log(@LogLevel int level, String tag, String message, @Nullable Throwable throwable) {
|
|
|
|
// For example...
|
|
|
|
Crashlytics.log(message);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
```
|
|
|
|
|
|
|
|
Make sure you enable the logger using `CameraLogger.setLogLevel(@LogLevel int)`. The default will only
|
|
|
|
log error events.
|