Module z

Some easy shortcut functions.

Copyright © 2009 Marc Worrell Date: 2009-04-08

Authors: Marc Worrell (marc@worrell.nl).

Description

Some easy shortcut functions.

Function Index

c/1Return a new context.
debug/2Log a debug message, with extra props.
debug/3
debug_msg/3Echo and return a debugging value.
flush/0Reset all caches, reload the dispatch rules and rescan all modules.
flush/1
info/2Log an informational message.
info/3
m/0(Re)make all erlang source modules and reset the caches.
n/2Send a notification.
n1/2Send a notification to the first observer.
restart/0Full restart of Zotonic.
warning/2Log a warning.
warning/3

Function Details

c/1

c(Site) -> any()

Return a new context

debug/2

debug(Msg, Context) -> any()

Log a debug message, with extra props.

debug/3

debug(Msg, Props, Context) -> any()

debug_msg/3

debug_msg(Module, Line, Msg) -> any()

Echo and return a debugging value

flush/0

flush() -> any()

Reset all caches, reload the dispatch rules and rescan all modules.

flush/1

flush(Context) -> any()

info/2

info(Msg, Context) -> any()

Log an informational message.

info/3

info(Msg, Props, Context) -> any()

m/0

m() -> any()

(Re)make all erlang source modules and reset the caches.

n/2

n(Msg, Context) -> any()

Send a notification

n1/2

n1(Msg, Context) -> any()

Send a notification to the first observer

restart/0

restart() -> any()

Full restart of Zotonic

warning/2

warning(Msg, Context) -> any()

Log a warning.

warning/3

warning(Msg, Props, Context) -> any()


Generated by EDoc, Feb 25 2011, 21:14:41.