Ejemplo n.º 1
0
def bar():
    logberry.info("inner functionality")
Ejemplo n.º 2
0
def foo():
    logberry.info("working normally")
    bar()
    bar()
    logberry.info("still working normally")
Ejemplo n.º 3
0
#!/usr/bin/env python3

import logberry

logberry.start(emitters=[logberry.JSONOutput()])
logberry.info('Test message', count=1)
logberry.stop()

## SPEC
#\d{8}T\d\d:\d\d:\d\d.\d{6} BEGIN\s+main\s+1\s*
#\d{8}T\d\d:\d\d:\d\d.\d{6} INFO\s+main Hello world\s+1\s+port: 7000, proto_version: "1.0.7b", user: {'dc': 'myorg', 'name': 'joe'}\s*
#\d{8}T\d\d:\d\d:\d\d.\d{6} END\s+main\s+1\s*
Ejemplo n.º 4
0
def foo(id=0):
    logberry.info("working normally")
Ejemplo n.º 5
0
#!/usr/bin/env python3

import logberry

logberry.start()
logberry.info('Hello world')
logberry.stop()

## SPEC
#\d{8}T\d\d:\d\d:\d\d.\d{6} BEGIN\s+main\s+1\s*
#\d{8}T\d\d:\d\d:\d\d.\d{6} INFO\s+main Hello world\s+1\s*
#\d{8}T\d\d:\d\d:\d\d.\d{6} END\s+main\s+1\s*