add support for maximum log size, and max number of log files

Signed-off-by: wlan0 <sidharthamn@gmail.com>
This commit is contained in:
wlan0
2015-07-02 06:26:06 -07:00
parent 4ef67b79bc
commit 9b782d3af3
16 changed files with 426 additions and 103 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func (cli *DockerCli) CmdLogs(args ...string) error {
follow := cmd.Bool([]string{"f", "-follow"}, false, "Follow log output")
since := cmd.String([]string{"-since"}, "", "Show logs since timestamp")
times := cmd.Bool([]string{"t", "-timestamps"}, false, "Show timestamps")
tail := cmd.String([]string{"-tail"}, "all", "Number of lines to show from the end of the logs")
tail := cmd.String([]string{"-tail"}, "latest", "Number of lines to show from the end of the logs")
cmd.Require(flag.Exact, 1)
cmd.ParseFlags(args, true)