Skip to content

The "log" does not output anything to the console, but the "log_err" outputs. #625

Closed
@dmitriy-bodroff

Description

@dmitriy-bodroff

OS: Linux/Ubuntu.

The log does not output anything to the console, but the log_err outputs. Following the documentation, I set the RUST_LOG environment variable as:

$ export RUST_LOG=main,std::io

But log does not write to the console still.

$ ./hello
$

hello.rs

fn main() {
  log "Hello World";
}

For log_err it works:

fn main() {
  log_err "Hello World";
}

$ ./hello
rt: ---
rt: a296:main:main:                   rust: Hello World
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions