Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Injection
- include
- submit
- replace
- 크로스 컴파일
- 시놀로지
- PHP GCM
- synology
- ASP
- println
- jQuery
- 커널
- javascript
- disabled
- 따라다니는 배너
- FileSystemObject
- XMLHTTP
- 무선랜카드
- form
- jquery 레이어
- ajax
- readonly
- Getrows
- utf-8
- DS718+
- lsusb
- SQL Injection
- euc-kr
- RTL88x2BU
- AC1300
Archives
- Today
- Total
목록FileOutputStream (1)
아는 것이 좋은 것이다.
[Java] 자바 로그 저장
import java.io.*; public class LogSave { public static void main(String[] args) throws FileNotFoundException { // TODO Auto-generated method stub File file = new File("save.log"); PrintStream printStream = new PrintStream(new FileOutputStream(file)); System.out.println("1"); // 화면으로 1 이라는 문자가 표시된다. System.setOut(printStream); System.out.println("2"); // save.log 파일로 2 라는 문자가 표시된다. } } 자바 로그 저장 소스
Java Programing
2014. 6. 3. 10:01