Commit Graph

1020 Commits

Author SHA1 Message Date
51de82df58 Removed unnecessary code
Can only load from existing preference keys
2020-08-28 22:45:24 -07:00
872f2e732e Loading now loads existing contexts as well
Loading now loads contexts created before manager created
Added additional trace logging
2020-08-28 21:33:25 -07:00
6012bee436 Use local logs instead of Riiablo.logs 2020-08-28 21:25:34 -07:00
9af239eab9 Created GdxLoggerManager to manage logger contexts
Decorates a LoggerRegistry
Handles loading and saving of logger contexts
Created commands for getting contexts, loggers, and changing contexts
2020-08-28 21:25:00 -07:00
533db1ff50 Added accessors to contexts and loggers via an unmodifiable trie 2020-08-28 21:20:16 -07:00
090edf78e2 Changed trace logging to traceEntry and improved message formats 2020-08-28 04:41:48 -07:00
16cf4a9572 Defined AbstractLogger#traceEntry() and #traceEntry(String,Object...) 2020-08-28 04:28:23 -07:00
055c2173e4 Added check because Reflections api doesn't work on android (see todo) 2020-08-28 01:19:18 -07:00
05be705363 Added temporary check to prevent attacking interactable entities 2020-08-28 00:44:01 -07:00
c12ea88b6e Added Reflections library to LoggerSuggester 2020-08-28 00:16:26 -07:00
8f2037a874 Configured default log level for root logger correctly 2020-08-28 00:14:59 -07:00
685349fe01 Replaced Log4j2 with com.riiablo.logger (see #105)
Log4j2 removed as a dependency
2020-08-27 23:21:24 -07:00
216b1ed6df Removed constraint on appender being null 2020-08-27 23:12:35 -07:00
2c2f9f9109 Created static valueOf overload to return default value if one doesn't exist 2020-08-27 23:11:52 -07:00
4db52a5e39 Renamed INSTANCE to DEFAULT_REGISTRY 2020-08-27 22:57:49 -07:00
05d4c935c5 Added accessor for default registry 2020-08-27 22:57:13 -07:00
14f78e0ca3 Added support for automatically flushing MDC after each entry
Riiablo's console was not written to handle multiline -- this seems easier
2020-08-27 22:45:36 -07:00
ba78d5d487 MDC different prints up one level only if depths not equal 2020-08-27 21:37:52 -07:00
f28e9b9f3f Implemented MDC difference checking to reduce printing as many non-dirty entries 2020-08-27 21:23:23 -07:00
a10f124803 Immutable copy only cleared if a mutation takes place 2020-08-27 04:52:14 -07:00
3939aee4c3 Introduced concept of dirty depth
`dirty depth` used to track earliest tree divergence for children
2020-08-27 04:40:08 -07:00
42d0b7ab4e Cleaned up logic slightly to improve readability 2020-08-27 04:34:09 -07:00
9f8bd1d612 Added invariants that StringMap#put key and value must be non-null 2020-08-27 04:33:17 -07:00
28bb1c2ae5 Filled remaining methods and reduced visibility of INSTANCE to private 2020-08-27 04:30:40 -07:00
7f79bbbc9a Refactored LogManager instance methods into LoggerRegistry
LogManager was having method name conflicts
LogManager delegates static methods to a LoggerRegistry instance
2020-08-27 04:28:04 -07:00
c4839f5e7e Simplified logIfEnabled calls 2020-08-27 01:39:09 -07:00
e7f225f887 Flipped enabled level check result 2020-08-27 01:34:12 -07:00
e142308112 Added Logger#fatal* methods 2020-08-27 01:33:28 -07:00
4214696808 Added Logger#error* methods 2020-08-27 01:32:44 -07:00
2b457e3c3a Added Logger#info* methods 2020-08-27 01:31:51 -07:00
4101724d3d Reorganized code 2020-08-27 01:30:36 -07:00
a3c99b6e66 Added warn methods 2020-08-27 01:29:16 -07:00
834d44ca3b Code formatting adjustment 2020-08-27 01:18:24 -07:00
d9232b3593 Created StringMap class to manage thread context
Created StringMap class to manage thread context
StringMap is ordered and optimized for my use-case
Engineered compact encoding mode to track thread context
2020-08-27 01:17:25 -07:00
60d50fa15d Added support for compact mdc output 2020-08-26 12:14:01 -07:00
5e3ecbe8d5 Added support for encoding stack traces 2020-08-26 11:52:15 -07:00
4d0ea7188f Implemented API for controlling full vs compact encoder modes 2020-08-26 11:46:28 -07:00
ddae4b9f75 Implemented basic MDC encoding 2020-08-26 11:40:43 -07:00
290160d93d Implemented thread context map 2020-08-26 11:39:34 -07:00
8bb866d3b3 Changed design slightly to only defer message contents encoding 2020-08-26 11:31:22 -07:00
2c9ca02f27 Changed responsibility chain s.t. RiiabloEncoder defers to SimpleEncoder for message content 2020-08-26 11:20:28 -07:00
85b57a7ed0 Renamed Layouter to Encoder 2020-08-26 11:17:29 -07:00
39cfd57368 Committing experimental code of logger package implementation (see #105) 2020-08-26 03:17:51 -07:00
5868465bb6 Added placeholder code to allow casting using mobile controls 2020-08-24 00:59:58 -07:00
579476df2f Added targetted left click casting
Left clicking a non-interactable entity will cast left action
Changed target clear calls to setTarget(src, INVALID_ENTITY)
2020-08-24 00:51:15 -07:00
25ef0918f0 Added jump table entries for attack function 2020-08-24 00:40:36 -07:00
7ccc32b9c7 Added cast(int,int,int) to cast on entity 2020-08-24 00:39:47 -07:00
b404e9eb40 Made null cltstfunc case a no-op 2020-08-23 20:17:01 -07:00
42378cf3be Removed comments 2020-08-23 20:08:06 -07:00
b56eec0dda Fixed barbarian stomp sound playing for nova
Implemented client-side callbacks for srvstfunc and srvdofunc
Changed stomp sound to play for client-side srvdofunc callback
2020-08-23 19:23:24 -07:00