BrightSide Workbench Full Report + Source Code
org.turro.log.SystemLogger Class Reference

Static Public Member Functions

static ISystemLogger getInstance ()
 
static ILogWrapper info ()
 
static ILogWrapper warning ()
 
static ILogWrapper severe ()
 
static ILogWrapper type (SystemLogType type)
 
static ILogButton getAnchor (Object generator, Object entity)
 
static ILogButton getAnchor (String generatorPath, String entityPath)
 
static ILogButton getButton (Object generator, Object entity)
 
static ILogButton getButton (String generatorPath, String entityPath)
 
static long getCountOf (String comment, String entityPath, Date since)
 
static void cleanup (String entityPath)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file SystemLogger.java.

Member Function Documentation

◆ cleanup()

static void org.turro.log.SystemLogger.cleanup ( String  entityPath)
static

Definition at line 90 of file SystemLogger.java.

90  {
91  getInstance().cleanup(entityPath);
92  }
static ISystemLogger getInstance()
void cleanup(String logPath)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAnchor() [1/2]

static ILogButton org.turro.log.SystemLogger.getAnchor ( Object  generator,
Object  entity 
)
static

Definition at line 60 of file SystemLogger.java.

60  {
61  return getAnchor(Entities.getController(generator).getPath(), Entities.getController(entity).getPath());
62  }
static ILogButton getAnchor(Object generator, Object entity)
Here is the call graph for this function:

◆ getAnchor() [2/2]

static ILogButton org.turro.log.SystemLogger.getAnchor ( String  generatorPath,
String  entityPath 
)
static

Definition at line 64 of file SystemLogger.java.

64  {
65  ILogButton button = Plugins.loadImplementation(ILogButton.class, "log-anchor");
66  if(button != null) {
67  button.setGeneratorPath(generatorPath);
68  button.setEntityPath(entityPath);
69  }
70  return button;
71  }
Here is the call graph for this function:

◆ getButton() [1/2]

static ILogButton org.turro.log.SystemLogger.getButton ( Object  generator,
Object  entity 
)
static

Definition at line 73 of file SystemLogger.java.

73  {
74  return getButton(Entities.getController(generator).getPath(), Entities.getController(entity).getPath());
75  }
static ILogButton getButton(Object generator, Object entity)
Here is the call graph for this function:

◆ getButton() [2/2]

static ILogButton org.turro.log.SystemLogger.getButton ( String  generatorPath,
String  entityPath 
)
static

Definition at line 77 of file SystemLogger.java.

77  {
78  ILogButton button = Plugins.loadImplementation(ILogButton.class, "log-button");
79  if(button != null) {
80  button.setGeneratorPath(generatorPath);
81  button.setEntityPath(entityPath);
82  }
83  return button;
84  }
Here is the call graph for this function:

◆ getCountOf()

static long org.turro.log.SystemLogger.getCountOf ( String  comment,
String  entityPath,
Date  since 
)
static

Definition at line 86 of file SystemLogger.java.

86  {
87  return getInstance().getCountOf(comment, entityPath, since);
88  }
long getCountOf(String comment, String logPath, Date since)
Here is the call graph for this function:

◆ getInstance()

static ISystemLogger org.turro.log.SystemLogger.getInstance ( )
static

Definition at line 37 of file SystemLogger.java.

37  {
38  if(INSTANCE == null) {
39  INSTANCE = CollectionUtil.from(Instances.cached().byAnnotation(ElephantLogger.class, ISystemLogger.class)).first();
40  }
41  return INSTANCE;
42  }
Here is the caller graph for this function:

◆ info()

static ILogWrapper org.turro.log.SystemLogger.info ( )
static

Definition at line 44 of file SystemLogger.java.

44  {
45  return getInstance().info();
46  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ severe()

static ILogWrapper org.turro.log.SystemLogger.severe ( )
static

Definition at line 52 of file SystemLogger.java.

52  {
53  return getInstance().severe();
54  }
Here is the call graph for this function:

◆ type()

static ILogWrapper org.turro.log.SystemLogger.type ( SystemLogType  type)
static

Definition at line 56 of file SystemLogger.java.

56  {
57  return getInstance().type(type);
58  }
static ILogWrapper type(SystemLogType type)
ILogWrapper type(SystemLogType type)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ warning()

static ILogWrapper org.turro.log.SystemLogger.warning ( )
static

Definition at line 48 of file SystemLogger.java.

48  {
49  return getInstance().warning();
50  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: