logi_ex v0.1.1 Logi.Location

The location where log message issued.

Summary

Types

An application name

A line number

A log message issued location

Functions

Gets the application of location

Gets the function of location

Gets the line of location

Gets the module of location

Gets the PID of location

Returns true if x is a location/0 value, false otherwise

Macros

Returns the current location of the caller

Types

application()
application() :: atom

An application name.

line()
line() :: non_neg_integer

A line number.

0 means “Unknonw Line”.

location()

A log message issued location.

Functions

get_application(location)
get_application(location) :: application

Gets the application of location.

get_function(location)
get_function(location) :: atom

Gets the function of location.

get_line(location)
get_line(location) :: line

Gets the line of location.

get_module(location)
get_module(location) :: module

Gets the module of location.

get_process(location)
get_process(location) :: pid

Gets the PID of location.

location?(x)
location?(any) :: boolean

Returns true if x is a location/0 value, false otherwise.

Macros

current_location()
current_location(term) :: location

Returns the current location of the caller.