32 Commits

Author SHA1 Message Date
Chen Yufei
df909fe80e Setup all logger before calling initLog(). 2015-06-03 00:42:11 +08:00
Chen Yufei
edfca689ea Fix crash on windows when upgrading config. 2013-10-08 20:15:34 +08:00
Chen Yufei
b97d28a0eb Use my color package to generate colored log. 2013-08-27 19:58:12 +08:00
Chen Yufei
1ebb4d39da Do not take special handling on log with debug option. 2013-07-28 01:08:34 +08:00
Chen Yufei
1bf0affd81 Extract Fatal(f), reorder options in config.go 2013-04-13 09:47:43 +08:00
Chen Yufei
aa3b629a0f Remove some no longer working command line options. 2013-03-18 14:58:14 +08:00
Chen Yufei
314f7a74ec Use const bool to detect if running on Windows. 2013-02-20 22:35:15 +08:00
Chen Yufei
7b43a31276 Always initialize logger. 2013-02-16 14:38:26 +08:00
Chen Yufei
83d821cc46 Fix logging crash on Windows. Weird initialization problem. 2013-02-07 18:42:16 +08:00
Chen Yufei
79bb7c4496 Always initialize logger instance. 2013-02-04 20:29:04 +08:00
Chen Yufei
31e57f30ab Move windows specific config into separate source file. 2012-12-18 20:26:03 +08:00
Chen Yufei
cbddaf3164 Directory and color fix for Windows. 2012-12-18 18:46:11 +08:00
Chen Yufei
72f8b6aac1 Fix typo: expandTild -> expandTilde 2012-12-18 16:59:41 +08:00
Chen Yufei
815ac9b613 Allow specify configuration file on command line.
Config now becomes a type, to make reflection possible, all fields are
exported now. So this commit touches almost all source files.
2012-12-17 16:55:52 +08:00
Chen Yufei
3c34a4694c With debug option, log goes to stdout and with color. 2012-12-17 01:10:39 +08:00
Chen Yufei
aebe94822a Disable buffering in log file. 2012-12-03 18:52:37 +08:00
Chen Yufei
e0ea6038c3 Write output into log file. 2012-11-15 14:30:38 +08:00
Chen Yufei
f3de86c93e Use stdout in logging. 2012-11-15 11:05:49 +08:00
Chen Yufei
add69bbbe2 Fix typo in option: reqest -> request. 2012-11-07 16:39:49 +08:00
Chen Yufei
e9a335e466 Disable debug/request/reply log by default. 2012-11-07 13:30:27 +08:00
Chen Yufei
0aaf801bcc Add command line options. 2012-11-07 13:23:50 +08:00
Chen Yufei
82722d5fa2 Detect connection reset and add domain to blocked list. 2012-10-31 01:26:17 +08:00
Chen Yufei
812426d91f Configurable colorize logging. 2012-10-04 13:03:35 +08:00
Chen Yufei
36c42714a4 Separate request and response printing. 2012-10-04 11:32:15 +08:00
Chen Yufei
dd1ee32ef2 Support persistent server connection. 2012-09-26 20:39:34 +08:00
Chen Yufei
de2af48f4a Extract checking ending CRLF. 2012-08-29 17:30:32 +08:00
Chen Yufei
2f1657c35d Proxy persistent connection works.
But need to close a connection appropriate.
2012-08-28 21:40:46 +08:00
Chen Yufei
6c5e2b20c2 HTTP server response status 200 should work. 2012-08-26 00:08:11 +08:00
Chen Yufei
3e4f4efab6 Low-level TCP. Client request parsing. 2012-08-25 00:13:33 +08:00
Chen Yufei
d4b9fcd8d3 Basic GET proxy working.
Need to know how to handle HTTP headers.
2012-08-24 17:39:42 +08:00
Chen Yufei
cee3c17d8e Colorize debug log. 2012-08-24 17:33:42 +08:00
Chen Yufei
d4d40bf546 log.go: simple wrapper for the log pkg.
To get something like log level.
2012-08-24 00:00:47 +08:00