Console.WriteLine($"[{DateTime.Now}] {msg}");
print('${DateTime.now()} msg');
integer :: value(8)
msg = "asdf"
call date_and_time (values=value)
write (unit=*,fmt='(I4,"-",I2.2,"-",I2.2," ",I2.2,":",I2.2,".",I4.4,": ",A)') value(1:3), value(5:7), msg
@Slf4j
class X {
def m(String message) {
log.debug(message)
}
}
console.error(Date(), msg);
console.log(Date(), msg);
Logger LOGGER = Logger.getLogger(MyClass.class.getName());
LOGGER.info(msg);
out.printf("%tc: `%s`%n", currentTimeMillis(), msg);
writeln(DateToStr(Now), #32, msg);
my $logline = sprintf "%s %s\n", localtime->strftime('%F %T'), $msg;
print $logline; # stdout
warn $logline; # stderr
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format="%(asctime)-15s %(message)s")
logger = logging.getLogger('NAME OF LOGGER')
logger.info(msg)
logger = Logger.new('logfile.log') # or STDOUT or STDERR
logger.info(msg)
eprintln!("[{}] {}", humantime::format_rfc3339_seconds(std::time::SystemTime::now()), msg);
My.Application.Log.WriteEntry(msg,TraceEventType.Verbose)