Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging Handler支持特定格式识别: KV #77

Closed
wjo1212 opened this issue May 24, 2018 · 1 comment
Closed

Logging Handler支持特定格式识别: KV #77

wjo1212 opened this issue May 24, 2018 · 1 comment

Comments

@wjo1212
Copy link
Collaborator

wjo1212 commented May 24, 2018

same as #76

support KV:

    c1 = "i=c1, k1=v1,k2=v2 k3=v3"
    c2 = 'i=c2, k1=" v 1 ", k2="v 2" k3="~!@#=`;.>"'
    c3 = u'i=c3, k1=你好 k2=他们'.encode('utf8')
    c4 = u'i=c4, 姓名=小明 年龄=中文 '.encode('utf8')
    c5 = u'i=c5, 姓名="小明" 年龄="中文" '.encode('utf8')
    c6 = u'i=c6, 姓名=中文 年龄=中文'
    c7 = u'i=c7, 姓名="小明" 年龄=中文 '
    c8 = """i=c8, k1="hello
    world" k2="good
    morning"
    """
    c9 = "i=c9 k1:v1, k2=v2"

    data = [c1, c2, c3, c4, c5, c6, c7, c8, c9]

    for d in data:
        logger.info(d)
wjo1212 added a commit that referenced this issue May 24, 2018
wjo1212 added a commit that referenced this issue May 24, 2018
@wjo1212
Copy link
Collaborator Author

wjo1212 commented May 25, 2018

fixed in 0.6.30

@wjo1212 wjo1212 closed this as completed May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant