mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
LoggerのModule作成
This commit is contained in:
1 file changed
+14
-1
@@ -1,4 +1,17 @@
|
||||
package one.nem.lacerta.utils.module;
|
||||
|
||||
public class LacertaLoggerModule {
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.components.SingletonComponent;
|
||||
|
||||
import one.nem.lacerta.utils.LacertaLogger;
|
||||
import one.nem.lacerta.utils.impl.LacertaLoggerImpl;
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent.class) // ログの取得であまり負荷をかけたくないので
|
||||
abstract public class LacertaLoggerModule {
|
||||
|
||||
@Binds
|
||||
public abstract LacertaLogger bindLacertaLogger(LacertaLoggerImpl lacertaLoggerImpl);
|
||||
}
|
||||
Reference in new issue
Block a user