---
title: "Resin3.x日志滚动"
author: "meiping"
date: "2011-03-12T11:29:36Z"
tags: []
categories: ["编程语言"]
slug: "resin3-x"
draft: false
lastmod: "2011-03-12T11:29:36Z"
id: 955665
url: "https://meiping.iteye.com/blog/955665"
---

可以按照日志大小和时间滚动，对日志还支持压缩zip和gzip压缩

```
<stdout-log path-format="log/stdout.log.%Y%m%d" timestamp="[%Y-%m-%d %H:%M:%S] " rollover-period="1D"  rollover-size="200mb" />
```