2019-10-15 10:30:08 -07:00
|
|
|
/*
|
2021-12-30 15:08:43 -08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2016-11-11 08:08:28 -08:00
|
|
|
*
|
2019-10-15 10:30:08 -07:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-11-11 08:08:28 -08:00
|
|
|
*/
|
2019-10-15 10:30:08 -07:00
|
|
|
|
2016-12-05 02:56:20 -08:00
|
|
|
package com.facebook.yoga;
|
2016-11-11 08:08:28 -08:00
|
|
|
|
2023-01-16 11:25:59 -08:00
|
|
|
import com.facebook.yoga.annotations.DoNotStrip;
|
2016-11-11 08:08:28 -08:00
|
|
|
|
|
|
|
/**
|
2017-12-03 20:14:00 -08:00
|
|
|
* Interface for receiving logs from native layer. Use by setting YogaNode.setLogger(myLogger);
|
2016-12-02 05:47:43 -08:00
|
|
|
* See YogaLogLevel for the different log levels.
|
2016-11-11 08:08:28 -08:00
|
|
|
*/
|
2016-11-28 09:20:59 -08:00
|
|
|
@DoNotStrip
|
2016-12-03 04:40:23 -08:00
|
|
|
public interface YogaLogger {
|
2016-11-11 08:08:28 -08:00
|
|
|
@DoNotStrip
|
2019-09-25 09:10:51 -07:00
|
|
|
void log(YogaLogLevel level, String message);
|
2016-11-11 08:08:28 -08:00
|
|
|
}
|