You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
620 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package logger;
/**
* 具体产品:文件日志记录器 实现Logger接口负责将日志写入文件
* @author <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @version 1.0
* @created 26-10<31><30>-2025 22:36:06
*/
public class FileLogger implements Logger {
public FileLogger(){
}
public void finalize() throws Throwable {
}
/**
* 记录日志到文件
*
* @param message 日志消息
*/
@Override
public void log(String message){
System.out.println("[文件日志] 正在写入日志到文件: " + message);
// 实际应用中这里会有文件IO操作代码
}
}//end FileLogger