glued.logging

Undocumented in source.

Members

Classes

DeferredLogSink
class DeferredLogSink
Undocumented in source.
StdoutSink
class StdoutSink

Trivial sink, useful mostly for debugging, development and testing

VoidSink
class VoidSink

No-op sink, usually used as a default param value

Enums

Level
enum Level
Undocumented in source.
___Module___
enum ___Module___
Undocumented in source.

Functions

collapse
string collapse(string p, int maxLength)
Undocumented in source. Be warned that the author may not have intended to support it.
cutDown
string cutDown(string s, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
enforceLength
string enforceLength(string s, int maxLength)
Undocumented in source. Be warned that the author may not have intended to support it.
format
string format(LogEvent e)
Undocumented in source. Be warned that the author may not have intended to support it.
mergeBrokenSegments
string[] mergeBrokenSegments(string[] segs)

if p="a.b!(c.d).e", then segments = ["a", "b!(c", "d)", "e"] this foo turns that back to ["a", "b!(c.d)", "e"]

normalize
string normalize(string p)
Undocumented in source. Be warned that the author may not have intended to support it.
normalizeSegments
string[] normalizeSegments(string[] segs)

turn ["a", "b!(x)", "b"] (path "a.b!(x).b") into ["a, "b!(x)"] ("a.b!(x)") Assumes that input was already fixed with mergeBrokenSegments

shorten
string shorten(string p)
Undocumented in source. Be warned that the author may not have intended to support it.
shortenLastSegmentTemplating
string shortenLastSegmentTemplating(string p)
Undocumented in source. Be warned that the author may not have intended to support it.
shortenSegments
string[] shortenSegments(string[] segs)
Undocumented in source. Be warned that the author may not have intended to support it.
toLevel
Level toLevel(string s)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

LogSink
interface LogSink
Undocumented in source.

Mixin templates

CreateLogger
mixintemplate CreateLogger(string f = __FILE__, int l = __LINE__, string m = __MODULE__, string foo = __FUNCTION__, string prettyFoo = __PRETTY_FUNCTION__)
Undocumented in source.

Structs

CodeLocation
struct CodeLocation
Undocumented in source.
LogEvent
struct LogEvent
Undocumented in source.
StaticSink
struct StaticSink
Undocumented in source.

Variables

maxLevelNameLength
auto maxLevelNameLength;
Undocumented in source.

Meta