constLOG_APPEND
const LOG_APPEND = 4
FILE_APPEND_DATA, shared for reading and writing, OPEN_ALWAYS, so it's made if it isn't there yet
log: messages with levels, to the screen, a file or both. use "log.jamo"
var log = new_log("game.log")
log.info("Level 2 started")
log.warn("Low on memory")
Each message gets the time and its level: [14:03:27] WARN Low on memory. A file is added to, never replaced.
const LOG_APPEND = 4
FILE_APPEND_DATA, shared for reading and writing, OPEN_ALWAYS, so it's made if it isn't there yet
const LOG_SHARE = 3
const LOG_OPEN_ALWAYS = 4
struct Log
file: string
level: int
to_screen: bool
endfunc new_log(file: string): Log
A log that writes to the screen and, unless file is "", to that file too
func log_level_number(name: string): int
func Log.set_level(name: string)
Only messages at this level or above are kept: debug, info (the start), warn or error
func Log.screen(on: bool)
func log_append(path: string, text: string): bool
func Log.write(level: int, words: string)
func Log.debug(words: string)
func Log.info(words: string)
func Log.warn(words: string)
func Log.error(words: string)