forked from fanruan/demo-tabledata-redis
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.
36 lines
834 B
36 lines
834 B
package com.fr.plugin.db.redis.help; |
|
|
|
import com.eclipsesource.v8.V8; |
|
import com.fr.general.IOUtils; |
|
import com.fr.io.utils.ResourceIOUtils; |
|
import com.fr.log.FineLoggerFactory; |
|
import com.fr.stable.EncodeConstants; |
|
|
|
import java.io.File; |
|
import java.io.FileInputStream; |
|
import java.io.FileNotFoundException; |
|
import java.io.InputStream; |
|
import java.io.UnsupportedEncodingException; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-03-18 |
|
*/ |
|
public class Console { |
|
|
|
private V8 v8; |
|
|
|
public Console(V8 v8) { |
|
this.v8 = v8; |
|
} |
|
|
|
public void log(Object message) { |
|
FineLoggerFactory.getLogger().info(message == null ? null : message.toString()); |
|
} |
|
|
|
public void error(Object message) { |
|
FineLoggerFactory.getLogger().error(message == null ? null : message.toString()); |
|
} |
|
|
|
}
|
|
|