/** author:whxbb*/
public void log(String fileName, String content) throws Exception
{
String logMsg = new Date().toLocaleString() + ":" + content + "/r/n";
ByteBuffer bbf = ByteBuffer.wrap(logMsg.getBytes());
File file = new File(fileName);
if (!file.exists())file.createNewFile();
boolean append = true;
FileChannel wChannel = new FileOutputStream(file, append).getChannel();
wChannel.write(bbf);
wChannel.close();
}