Skip to content

Consider using logging methods instead of IJ.log() #45

Description

@ehrenfeu

Question:

  • Is there a different effect between e.g. log.warning() and IJ.log()?
  • If yes, what's the rationale behind using IJ.log()?
  • Should we have a function abstracting the IJ.log() call?
    • Additional things could be done there (timestamp-prefix, extra logging targets, ...).
    • We'd have a single place where changes could be applied when necessary, instead of doing stuff at each and every occurrence of an IJ.log() call.

Relevant lines specifically in this module:

IJ.log(
"\\Update%i:%s[%s%s] %i/%i\r"
% (
line_number,
timed_log(prefix, True),
"#" * x,
"." * (size - x),
progress,
total,
)
)

IJ.log(time.strftime("%H:%M:%S", time.localtime()) + ": " + message + " ")

Metadata

Metadata

Labels

enhancementNew feature or requestnext-coding-sessionLook into during the next CS.questionFurther information is requested

Type

Fields

No fields configured for Task.

Projects

Status
Ready

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions