<commit_before>log
===

[![wercker status](https://app.wercker.com/status/cf8711e6d779a53c6a7921716db35df5/s/ "wercker status")](https://app.wercker.com/project/bykey/cf8711e6d779a53c6a7921716db35df5)
提供日志输出支持.

The documentation is available at
[gowalker.org](http://gowalker.org/github.com/typepress/log).

Support
=======

 - 并发安全
 - 日志级别
 - 多种输出规则
 - io.Writer 接口
 - io.ReaderFrom 接口
 - 友好输出格式易于分析
 - Loggers, 设计思路来自 https://github.com/uniqush/log.

Import
======

	import "github.com/achun/tom-toml"

Usage
=====

```go
package main

import (
	"bytes"
	"fmt"
	"github.com/typepress/log"
)

func main(){
	w := bytes.NewBuffer([]byte{})
	m := log.Multi(log.New(w, // io.Writer
		"prefix", // prefix string
		0,        // flag, 0 equal log.LZero
	))

	m.Add(log.New(w,
		"",
		log.LstdFlags|log.Lshortfile,
		log.Lmicroseconds,
	))

	m.Info("info")
	m.Notify("Notify")

	fmt.Println(w.String())
}
```

output:

	prefix [I] "info"
	[I] 2014-02-17 23:26:05.780139 <hello.go:22> "info"
	prefix [N] "Notify"
	[N] 2014-02-17 23:26:05.783140 <hello.go:23> "Notify"

License
=======
BSD-2-Clause
<commit_msg>fix import<commit_after>log
===

[![wercker status](https://app.wercker.com/status/cf8711e6d779a53c6a7921716db35df5/s/ "wercker status")](https://app.wercker.com/project/bykey/cf8711e6d779a53c6a7921716db35df5)
提供日志输出支持.

The documentation is available at
[gowalker.org](http://gowalker.org/github.com/typepress/log).

Support
=======

 - 并发安全
 - 日志级别
 - 多种输出规则
 - io.Writer 接口
 - io.ReaderFrom 接口
 - 友好输出格式易于分析
 - Loggers, 设计思路来自 https://github.com/uniqush/log.

Import
======

	import "github.com/typepress/log"

Usage
=====

```go
package main

import (
	"bytes"
	"fmt"
	"github.com/typepress/log"
)

func main(){
	w := bytes.NewBuffer([]byte{})
	m := log.Multi(log.New(w, // io.Writer
		"prefix", // prefix string
		0,        // flag, 0 equal log.LZero
	))

	m.Add(log.New(w,
		"",
		log.LstdFlags|log.Lshortfile,
		log.Lmicroseconds,
	))

	m.Info("info")
	m.Notify("Notify")

	fmt.Println(w.String())
}
```

output:

	prefix [I] "info"
	[I] 2014-02-17 23:26:05.780139 <hello.go:22> "info"
	prefix [N] "Notify"
	[N] 2014-02-17 23:26:05.783140 <hello.go:23> "Notify"

License
=======
BSD-2-Clause

{'fraction_non_alphanumeric': 0.19754768392370572, 'fraction_numerical': 0.08083560399636694, 'mean_word_length': 3.7376344086021507, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6658326', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1024, 'n_words': 151}