B4J Question Logging config

Haris Hafeez

Active Member
Licensed User
Longtime User
Hey everybody,

Was wondering if there is a way to configure the logging system, such as, what gets output to the logs and the format of the logs?

By default, the log statements print to the console output (one running the jar) whereas the log itself has very rudimentary information in it (HTTP method calls only).
 

Roycefer

Well-Known Member
Licensed User
Longtime User
What are you trying to accomplish?

The jAWTRobot library allows you to redirect Standard Out and/or Standard Error to files of your choice.

The jColorLogger library allows you to output column-aligned color-coded output as well as receive console input.
 
Upvote 0

Haris Hafeez

Active Member
Licensed User
Longtime User
Thanks for the reply. I am trying to configure the logging system, as we do so when using log4j etc.

I am interested in setting up the log system such that the output contains things like the timestamp of the request, method name where the log came from, the log statement.

I've not looked at the jAWTRobot library before so will give that a look. I think that might be able to help. Note that I am thinking about logging in use cases where the jar is deployed as a windows or linux service (either .bat, service or a daemon).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…