LoggerのModule作成

This commit is contained in:
r-ca 2023-12-16 14:20:26 +09:00
parent c3b53776e4
commit 43b0dd4eed
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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);
}