mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
LoggerのModule作成
This commit is contained in:
parent
c3b53776e4
commit
43b0dd4eed
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user