log forging (#1659)

* jvm log forging

* jvm log forging

* jvm log forging

* log forging
This commit is contained in:
Abhinab Kanrar 2017-04-16 14:14:56 +05:30 committed by maibin
parent 99a0b6e2f1
commit c313256e8e
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ public class LogForgingDemo {
public static void main(String[] args) {
LogForgingDemo demo = new LogForgingDemo();
demo.addLog(String.valueOf(300));
demo.addLog(String.valueOf(300 + "\n\nweb - 2017-04-12 17:47:08,957 [main] INFO Amount reversed successfully"));
demo.addLog(String.valueOf(encode(300 + "\n\nweb - 2017-04-12 17:47:08,957 [main] INFO Amount reversed successfully")));
demo.addLog("300");
demo.addLog("300 \n\nweb - 2017-04-12 17:47:08,957 [main] INFO Amount reversed successfully");
demo.addLog(encode("300 \n\nweb - 2017-04-12 17:47:08,957 [main] INFO Amount reversed successfully"));
}
public static String encode(String message) {