Class FileLoggerImpl
- java.lang.Object
-
- com.ss.android.ugc.bytex.common.log.Impl.BaseLogger
-
- com.ss.android.ugc.bytex.common.log.Impl.FileLoggerImpl
-
- All Implemented Interfaces:
ILogger,java.io.Closeable,java.lang.AutoCloseable
public class FileLoggerImpl extends BaseLogger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidfinalize()static FileLoggerImplof(java.lang.String fileName)protected voidwrite(org.gradle.api.logging.LogLevel level, java.lang.String prefix, java.lang.String msg, java.lang.Throwable t)
-
-
-
Method Detail
-
of
public static FileLoggerImpl of(java.lang.String fileName) throws java.io.IOException
- Throws:
java.io.IOException
-
write
protected void write(org.gradle.api.logging.LogLevel level, java.lang.String prefix, java.lang.String msg, java.lang.Throwable t)- Specified by:
writein classBaseLogger
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classBaseLogger- Throws:
java.io.IOException
-
-